summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/machine/powerpc/vfscanf.c2
-rw-r--r--newlib/libc/stdio/vfscanf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/machine/powerpc/vfscanf.c b/newlib/libc/machine/powerpc/vfscanf.c
index f4481efb7..37d2da7fe 100644
--- a/newlib/libc/machine/powerpc/vfscanf.c
+++ b/newlib/libc/machine/powerpc/vfscanf.c
@@ -1085,8 +1085,8 @@ __svfscanf_r (rptr, fp, fmt0, ap)
break;
fok:
*p++ = c;
- fl_width--;
fskip:
+ fl_width--;
++nread;
if (--fp->_r > 0)
fp->_p++;
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++;