From: Thomas Schwinge Date: Sun, 26 May 2013 19:59:24 +0000 (+0200) Subject: * stdio-common/bug26.c (main): Correct fscanf template. X-Git-Tag: glibc-2.18~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=528c24058fb100fb27fe5c211b92be84c67a6659;p=thirdparty%2Fglibc.git * stdio-common/bug26.c (main): Correct fscanf template. Fixup for commit 6ecec3b616aeaf121c68c1053cd17fdcf0cdb5a2. --- diff --git a/ChangeLog b/ChangeLog index 9a9e22f0262..61d8a40fb93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2013-05-26 Thomas Schwinge + * stdio-common/bug26.c (main): Correct fscanf template. + * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't declare _dl_skip_args. diff --git a/stdio-common/bug26.c b/stdio-common/bug26.c index a4c6bce9392..cc54b964187 100644 --- a/stdio-common/bug26.c +++ b/stdio-common/bug26.c @@ -28,8 +28,9 @@ main (void) char s[] = "+.e"; f = fmemopen (s, strlen (s), "r"); - /* This should fail to parse a float and leave 'e' in the input. */ - lost |= (fscanf (f, "%f", &d) != 0); + /* This should fail to parse a floating-point number, and leave 'e' in the + input. */ + lost |= (fscanf (f, "%lf", &d) != 0); c = fgetc (f); lost |= c != 'e'; puts (lost ? "Test FAILED!" : "Test succeeded.");