Line
Link Here
|
0 |
-- a/stdio-common/vfscanf-internal.c |
0 |
++ b/stdio-common/vfscanf-internal.c |
Lines 486-492
__vfscanf_internal (FILE *s, const char *format, va_list argptr,
Link Here
|
486 |
/* Check for a positional parameter specification. */ |
486 |
/* Check for a positional parameter specification. */ |
487 |
if (ISDIGIT ((UCHAR_T) *f)) |
487 |
if (ISDIGIT ((UCHAR_T) *f)) |
488 |
{ |
488 |
{ |
489 |
argpos = read_int ((const UCHAR_T **) &f); |
489 |
const UCHAR_T * uf = (void*)f; |
|
|
490 |
argpos = read_int (&uf); |
491 |
f = (void*)uf; |
490 |
if (*f == L_('$')) |
492 |
if (*f == L_('$')) |
491 |
++f; |
493 |
++f; |
492 |
else |
494 |
else |
Lines 521-528
__vfscanf_internal (FILE *s, const char *format, va_list argptr,
Link Here
|
521 |
|
523 |
|
522 |
/* Find the maximum field width. */ |
524 |
/* Find the maximum field width. */ |
523 |
width = 0; |
525 |
width = 0; |
524 |
if (ISDIGIT ((UCHAR_T) *f)) |
526 |
if (ISDIGIT ((UCHAR_T) *f)) { |
525 |
width = read_int ((const UCHAR_T **) &f); |
527 |
const UCHAR_T * uf = (void*)f; |
|
|
528 |
width = read_int (&uf); |
529 |
f = (void*)uf; |
530 |
} |
526 |
got_width: |
531 |
got_width: |
527 |
if (width == 0) |
532 |
if (width == 0) |
528 |
width = -1; |
533 |
width = -1; |