aboutsummaryrefslogtreecommitdiff
path: root/coreutils/printf.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-05-31 18:32:56 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-05-31 18:32:56 +0000
commita76669c5956842c5d2b5b6137a4cd9232112f6b2 (patch)
tree5fdc23003d8d5573736f7db55d7da787ee5dca92 /coreutils/printf.c
parentf4e6bd0bf3c09f9672107ef1c45174c2ce13269a (diff)
downloadbusybox-a76669c5956842c5d2b5b6137a4cd9232112f6b2.tar.gz
busybox-a76669c5956842c5d2b5b6137a4cd9232112f6b2.tar.bz2
printf: fix a trivial bug
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r--coreutils/printf.c2
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,
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) {