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-530-g5cb26d0


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  5cb26d0aed9c7414f0d391a0ca766786625de8b5 (commit)
      from  acb4325fc72d5eeecf3cf3fe63c599e582bb3bd0 (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=5cb26d0aed9c7414f0d391a0ca766786625de8b5

commit 5cb26d0aed9c7414f0d391a0ca766786625de8b5
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Mon Apr 15 11:35:43 2013 +0530

    Fix off-by-one bug in tst-fwrite-error
    
    tst-fwrite-error did not allocate enough space for the string 'world'
    and its NULL terminator.  Fixed.

diff --git a/ChangeLog b/ChangeLog
index b80865e..ac1d263 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
+
 	* benchtests/Rules (bench-deps): Collect dependencies into a
 	single variable.  Add Makefile to dependencies.
 	($(objpfx)bench-%.c): Depend on bench-deps.
diff --git a/libio/tst-fwrite-error.c b/libio/tst-fwrite-error.c
index e2507ef..87c8766 100644
--- a/libio/tst-fwrite-error.c
+++ b/libio/tst-fwrite-error.c
@@ -36,7 +36,7 @@ do_test (void)
       return 1;
     }
 
-  char buf[5] = "world";
+  char buf[] = "world";
   setvbuf (fp, NULL, _IONBF, 0);
   close (fd);
   unlink (tmpl);

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

Summary of changes:
 ChangeLog                |    2 ++
 libio/tst-fwrite-error.c |    2 +-
 2 files changed, 3 insertions(+), 1 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]