This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-743-g528c240


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  528c24058fb100fb27fe5c211b92be84c67a6659 (commit)
      from  07b4c13d0be4814ef10bbfbfd68db604978aa0e5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=528c24058fb100fb27fe5c211b92be84c67a6659

commit 528c24058fb100fb27fe5c211b92be84c67a6659
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Sun May 26 21:59:24 2013 +0200

    	* stdio-common/bug26.c (main): Correct fscanf template.
    
    Fixup for commit 6ecec3b616aeaf121c68c1053cd17fdcf0cdb5a2.

diff --git a/ChangeLog b/ChangeLog
index 9a9e22f..61d8a40 100644
--- 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.
 
diff --git a/stdio-common/bug26.c b/stdio-common/bug26.c
index a4c6bce..cc54b96 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.");

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog            |    2 ++
 stdio-common/bug26.c |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]