diff options
author | ache <ache@FreeBSD.org> | 1997-02-05 20:54:16 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-02-05 20:54:16 +0000 |
commit | 3ef0c8c52c8c45126ac97c1e516b5ce3caf3b9f7 (patch) | |
tree | df4687a46c93516075277c812ef6ae3e29fc4932 /lib | |
parent | 37ca85c089f28bd04237b7fd363ad07b07994aac (diff) | |
download | FreeBSD-src-3ef0c8c52c8c45126ac97c1e516b5ce3caf3b9f7.zip FreeBSD-src-3ef0c8c52c8c45126ac97c1e516b5ce3caf3b9f7.tar.gz |
Add XXX comment describing potential memset non-portable issue
Nitpicked-by: joerg
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/vfscanf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index f26db86..f2699b8 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -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 ] */ |