]> sourceware.org Git - glibc.git/commitdiff
* stdio-common/bug26.c (main): Correct fscanf template.
authorThomas Schwinge <thomas@codesourcery.com>
Sun, 26 May 2013 19:59:24 +0000 (21:59 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Sun, 26 May 2013 19:59:24 +0000 (21:59 +0200)
Fixup for commit 6ecec3b616aeaf121c68c1053cd17fdcf0cdb5a2.

ChangeLog
stdio-common/bug26.c

index 9a9e22f026236f12f3d997827aba6a7db27da8b0..61d8a40fb9317769b4b29e059a939bc0487f5390 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
 
+       * stdio-common/bug26.c (main): Correct fscanf template.
+
        * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
        declare _dl_skip_args.
 
index a4c6bce9392975ecc35681af34b17db0f4f47532..cc54b96418789ff91be24d6249cd98802b1661f2 100644 (file)
@@ -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.");
This page took 0.116393 seconds and 5 git commands to generate.