This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] printf-parsemb.c initialization fix
- From: Thorsten Kukuk <kukuk at suse dot de>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 29 Jun 2004 18:31:18 +0200
- Subject: [PATCH] printf-parsemb.c initialization fix
- Organization: SuSE Linux AG, Nuernberg, Germany
Hi,
in function __parse_one_specwc/__parse_one_specmb one element of
the printf_spec struct will currently not be initialized (info.extra).
As result, sometimes the printf output looks not like the expected
one. Marcus Meissner found this, the proposed fix is:
--- glibc/stdio-common/printf-parsemb.c 2004-06-29 06:41:04.191229619 -0700
+++ glibc/stdio-common/printf-parsemb.c.fix 2004-06-29 06:40:59.755513126
+-0700
@@ -104,6 +104,7 @@
spec->info.showsign = 0;
spec->info.group = 0;
spec->info.i18n = 0;
+ spec->info.extra = 0;
spec->info.pad = ' ';
spec->info.wide = sizeof (UCHAR_T) > 1;
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE Linux AG Maxfeldstr. 5 D-90409 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B