diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-31 18:32:56 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-31 18:32:56 +0000 |
commit | a76669c5956842c5d2b5b6137a4cd9232112f6b2 (patch) | |
tree | 5fdc23003d8d5573736f7db55d7da787ee5dca92 | |
parent | f4e6bd0bf3c09f9672107ef1c45174c2ce13269a (diff) | |
download | busybox-w32-a76669c5956842c5d2b5b6137a4cd9232112f6b2.tar.gz busybox-w32-a76669c5956842c5d2b5b6137a4cd9232112f6b2.tar.bz2 busybox-w32-a76669c5956842c5d2b5b6137a4cd9232112f6b2.zip |
printf: fix a trivial bug
-rw-r--r-- | coreutils/printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
116 | saved = format[fmt_length]; | 116 | saved = format[fmt_length]; |
117 | format[fmt_length] = '\0'; | 117 | format[fmt_length] = '\0'; |
118 | 118 | ||
119 | switch (p[fmt_length - 1]) { | 119 | switch (format[fmt_length - 1]) { |
120 | case 'd': | 120 | case 'd': |
121 | case 'i': | 121 | case 'i': |
122 | if (field_width < 0) { | 122 | if (field_width < 0) { |