Add XXX comment describing potential memset non-portable issue

Nitpicked-by: joerg
This commit is contained in:
Andrey A. Chernov 1997-02-05 20:54:16 +00:00
parent 76dafb8954
commit 628abd1b29
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22308

View file

@ -677,7 +677,10 @@ __sccl(tab, fmt)
c = *fmt++; /* get new first char */
} else
v = 0; /* default => reject */
/* XXX: Will not work if sizeof(tab*) > sizeof(char) */
(void) memset(tab, v, 256);
if (c == 0)
return (fmt - 1);/* format ended before closing ] */