diff --git a/lib/vsprintf.c b/lib/vsprintf.c index dc16743770094e06761a1a5110e1560c731a0ebf..708e505ce81fc5573ba0d48e53293237a8846f51 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -843,7 +843,7 @@ static int format_decode(const char *fmt, struct printf_spec *spec) spec->precision = 0; } else if (*fmt == '*') { /* it's the next argument */ - spec->type = FORMAT_TYPE_WITDH; + spec->type = FORMAT_TYPE_PRECISION; return ++fmt - start; } }