2004-06-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions, reset digit flags appropriately after we have discovered "0x". * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
This commit is contained in:
parent
cdb055db02
commit
8b57e664af
|
@ -1,3 +1,9 @@
|
|||
2004-06-02 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
|
||||
reset digit flags appropriately after we have discovered "0x".
|
||||
* libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
|
||||
|
||||
2004-05-27 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
|
||||
|
|
|
@ -911,6 +911,10 @@ __svfscanf_r (rptr, fp, fmt0, ap)
|
|||
{
|
||||
base = 16;/* if %i */
|
||||
flags &= ~PFXOK;
|
||||
/* We must reset the NZDIGITS and NDIGITS
|
||||
flags that would have been unset by seeing
|
||||
the zero that preceded the X or x. */
|
||||
flags |= NZDIGITS | NDIGITS;
|
||||
goto ok;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -872,6 +872,10 @@ _DEFUN(__svfscanf_r, (rptr, fp, fmt0, ap),
|
|||
{
|
||||
base = 16;/* if %i */
|
||||
flags &= ~PFXOK;
|
||||
/* We must reset the NZDIGITS and NDIGITS
|
||||
flags that would have been unset by seeing
|
||||
the zero that preceded the X or x. */
|
||||
flags |= NZDIGITS | NDIGITS;
|
||||
goto ok;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue