svn commit: trunk/busybox/coreutils
vda at busybox.net
vda at busybox.net
Tue Mar 3 14:14:44 UTC 2009
Author: vda
Date: 2009-03-03 14:14:44 +0000 (Tue, 03 Mar 2009)
New Revision: 25506
Log:
printf: fix 1.12.0 breakage (from %*d fix). It was misinterpreting "*"
Modified:
trunk/busybox/coreutils/printf.c
Changeset:
Modified: trunk/busybox/coreutils/printf.c
===================================================================
--- trunk/busybox/coreutils/printf.c 2009-03-03 14:09:04 UTC (rev 25505)
+++ trunk/busybox/coreutils/printf.c 2009-03-03 14:14:44 UTC (rev 25506)
@@ -139,14 +139,14 @@
char saved;
char *have_prec, *have_width;
+ saved = format[fmt_length];
+ format[fmt_length] = '\0';
+
have_prec = strstr(format, ".*");
have_width = strchr(format, '*');
if (have_width - 1 == have_prec)
have_width = NULL;
- saved = format[fmt_length];
- format[fmt_length] = '\0';
-
switch (format[fmt_length - 1]) {
case 'c':
printf(format, *argument);
More information about the busybox-cvs
mailing list