libc: break from scanf on failed non-whitespace match
This commit is contained in:
parent
92a17c3e9e
commit
0d8a512308
@ -58,6 +58,8 @@ int vsscanf(const char *str, const char *format, va_list ap) {
|
||||
/* Expect exact character? */
|
||||
if (*str == *format) {
|
||||
str++;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
format++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user