aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/vsprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index dc167437700..708e505ce81 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -843,7 +843,7 @@ precision:
spec->precision = 0;
} else if (*fmt == '*') {
/* it's the next argument */
- spec->type = FORMAT_TYPE_WITDH;
+ spec->type = FORMAT_TYPE_PRECISION;
return ++fmt - start;
}
}