diff options
-rw-r--r-- | lib/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index b91839e9e892..33bed5e67a21 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c | |||
@@ -1771,7 +1771,7 @@ int vsscanf(const char * buf, const char * fmt, va_list args) | |||
1771 | * advance both strings to next white space | 1771 | * advance both strings to next white space |
1772 | */ | 1772 | */ |
1773 | if (*fmt == '*') { | 1773 | if (*fmt == '*') { |
1774 | while (!isspace(*fmt) && *fmt) | 1774 | while (!isspace(*fmt) && *fmt != '%' && *fmt) |
1775 | fmt++; | 1775 | fmt++; |
1776 | while (!isspace(*str) && *str) | 1776 | while (!isspace(*str) && *str) |
1777 | str++; | 1777 | str++; |