svn commit: trunk/busybox/coreutils

vda at busybox.net vda at busybox.net
Sat May 31 18:32:56 UTC 2008


Author: vda
Date: 2008-05-31 11:32:56 -0700 (Sat, 31 May 2008)
New Revision: 22153

Log:
printf: fix a trivial bug



Modified:
   trunk/busybox/coreutils/printf.c


Changeset:
Modified: trunk/busybox/coreutils/printf.c
===================================================================
--- trunk/busybox/coreutils/printf.c	2008-05-31 18:27:58 UTC (rev 22152)
+++ trunk/busybox/coreutils/printf.c	2008-05-31 18:32:56 UTC (rev 22153)
@@ -116,7 +116,7 @@
 	saved = format[fmt_length];
 	format[fmt_length] = '\0';
 
-	switch (p[fmt_length - 1]) {
+	switch (format[fmt_length - 1]) {
 	case 'd':
 	case 'i':
 		if (field_width < 0) {




More information about the busybox-cvs mailing list