diff options
author | das <das@FreeBSD.org> | 2012-04-22 21:22:14 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2012-04-22 21:22:14 +0000 |
commit | 243d0c2d4a9b09326e5d94a24d31419db71a13d5 (patch) | |
tree | 2803a2a6e8d6ba929f0c2be5acbc5619cd41b55c /lib/libc/stdio/vfscanf.c | |
parent | 7abfae39c1f5e5761e8c502d67c6540717ef0c1e (diff) | |
download | FreeBSD-src-243d0c2d4a9b09326e5d94a24d31419db71a13d5.zip FreeBSD-src-243d0c2d4a9b09326e5d94a24d31419db71a13d5.tar.gz |
Bugfix: %n doesn't count as a conversion, so
sscanf("abc", "ab%ncd", &i) returns EOF, not 0.
Diffstat (limited to 'lib/libc/stdio/vfscanf.c')
-rw-r--r-- | lib/libc/stdio/vfscanf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index 9b8b1b2..f9b7e55 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -703,7 +703,6 @@ literal: break; case 'n': - nconversions++; if (flags & SUPPRESS) /* ??? */ continue; if (flags & SHORTSHORT) |