From a76669c5956842c5d2b5b6137a4cd9232112f6b2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 31 May 2008 18:32:56 +0000 Subject: printf: fix a trivial bug --- coreutils/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/printf.c') diff --git a/coreutils/printf.c b/coreutils/printf.c index cd184952e..ebe961564 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c @@ -116,7 +116,7 @@ static void print_direc(char *format, unsigned fmt_length, 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) { -- cgit v1.2.3