This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.18-170-g12c22bc
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 24 Sep 2013 23:13:07 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.18-170-g12c22bc
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 12c22bc4e3bdc9fdf493a75cc6fe06ffb9fa47a4 (commit)
from a03d8ea77f9b8292efb8f8fc49a573c637124e49 (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=12c22bc4e3bdc9fdf493a75cc6fe06ffb9fa47a4
commit 12c22bc4e3bdc9fdf493a75cc6fe06ffb9fa47a4
Author: Olivier Langlois <olivier@olivierlanglois.net>
Date: Tue Sep 24 16:12:12 2013 -0700
Fix tst-long-dbl-fphex swprintf length calculation.
diff --git a/ChangeLog b/ChangeLog
index 9833df6..9824ec4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-24 Olivier Langlois <olivier@olivierlanglois.net>
+
+ * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
+ argument calculation.
+
2013-09-24 Joseph Myers <joseph@codesourcery.com>
* conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
diff --git a/stdio-common/tst-long-dbl-fphex.c b/stdio-common/tst-long-dbl-fphex.c
index 0be80ca..a406a71 100644
--- a/stdio-common/tst-long-dbl-fphex.c
+++ b/stdio-common/tst-long-dbl-fphex.c
@@ -28,9 +28,9 @@ do_test (void)
int result = 0;
const long double x = 24.5;
wchar_t a[16];
- swprintf (a, sizeof (a), L"%La\n", x);
+ swprintf (a, sizeof a / sizeof a[0], L"%La\n", x);
wchar_t A[16];
- swprintf (A, sizeof (A) / sizeof (A[0]), L"%LA\n", x);
+ swprintf (A, sizeof A / sizeof A[0], L"%LA\n", x);
/* Here wprintf can return four valid variants. We must accept all
of them. */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
stdio-common/tst-long-dbl-fphex.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources