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.
This commit is contained in:
Jeff Johnston
2003-03-20 17:23:57 +00:00
parent 50b9d1a8f1
commit e6bdc6c5eb
3 changed files with 8 additions and 2 deletions

View File

@ -931,8 +931,8 @@ __svfscanf_r (rptr, fp, fmt0, ap)
break;
fok:
*p++ = c;
width--;
fskip:
width--;
++nread;
if (--fp->_r > 0)
fp->_p++;