diff options
Diffstat (limited to 'libc/stdio/scanf.c')
-rw-r--r-- | libc/stdio/scanf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/scanf.c b/libc/stdio/scanf.c index 4fbf1cdfa..48d53c7f3 100644 --- a/libc/stdio/scanf.c +++ b/libc/stdio/scanf.c @@ -350,7 +350,7 @@ int vfscanf(FILE *fp, const char *format, va_list ap) if (p-spec < 5) { /* [,c,s - string conversions */ invert = 0; if (*p == 'c') { - invert = 0; + invert = 1; if (sc.width == INT_MAX) { sc.width = 1; } |