Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/powerpc/vfscanf.c')
-rw-r--r--newlib/libc/machine/powerpc/vfscanf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/machine/powerpc/vfscanf.c b/newlib/libc/machine/powerpc/vfscanf.c
index 602fd7735..63855edcd 100644
--- a/newlib/libc/machine/powerpc/vfscanf.c
+++ b/newlib/libc/machine/powerpc/vfscanf.c
@@ -803,6 +803,7 @@ __svfscanf_r (rptr, fp, fmt0, ap)
case CT_INT:
{
unsigned int_width_left = 0;
+ int skips = 0;
int_width = width;
#ifdef hardway
if (int_width == 0 || int_width > sizeof (buf) - 1)
@@ -852,6 +853,7 @@ __svfscanf_r (rptr, fp, fmt0, ap)
int_width_left--;
int_width++;
}
+ ++skips;
goto skip;
/* 1 through 7 always legal */
@@ -1009,7 +1011,7 @@ __svfscanf_r (rptr, fp, fmt0, ap)
if (!(flags & VECTOR))
nassigned++;
}
- nread += p - buf;
+ nread += p - buf + skips;
break;
}