diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-03-20 17:23:57 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-03-20 17:23:57 +0000 |
commit | e6bdc6c5ebbfc0a97c1cc8ee77da138d65569828 (patch) | |
tree | b807927621f60349d64570796598b4d542147915 /newlib/libc/stdio | |
parent | 50b9d1a8f151a59dba86e8266dff60f6d9a69c8a (diff) | |
download | cygnal-e6bdc6c5ebbfc0a97c1cc8ee77da138d65569828.tar.gz cygnal-e6bdc6c5ebbfc0a97c1cc8ee77da138d65569828.tar.bz2 cygnal-e6bdc6c5ebbfc0a97c1cc8ee77da138d65569828.zip |
2003-03-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
count all characters used to create number against maximum width.
* libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r-- | newlib/libc/stdio/vfscanf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index 61a901ea3..fd9ca0a62 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -931,8 +931,8 @@ __svfscanf_r (rptr, fp, fmt0, ap) break; fok: *p++ = c; - width--; fskip: + width--; ++nread; if (--fp->_r > 0) fp->_p++; |