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

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 ] */