mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Add XXX comment describing potential memset non-portable issue
Nitpicked-by: joerg
This commit is contained in:
parent
76dafb8954
commit
628abd1b29
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22308
@ -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 ] */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user