]> sourceware.org Git - newlib-cygwin.git/commit
stdio: Parse 0x0p+00 correctly in scanf
authorKeith Packard <keithp@keithp.com>
Fri, 18 Jun 2021 18:09:48 +0000 (11:09 -0700)
committerJeff Johnston <jjohnstn@redhat.com>
Fri, 18 Jun 2021 21:15:37 +0000 (17:15 -0400)
commit92068f4cc5f2cb655b32a46fdba93a9e572c307b
treea348c9c1a46fa0e4ee127af5ea8abf519ee71a49
parent90a72f27d5f724b496525b54a5d9f99cdcecbb9c
stdio: Parse 0x0p+00 correctly in scanf

The scanf code was skipping the '0' after the 'x' causing the
resulting buffer to contain an invalid number when passed to strtod.

Signed-off-by: Keith Packard <keithp@keithp.com>
newlib/libc/stdio/vfscanf.c
This page took 0.030546 seconds and 5 git commands to generate.