summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-05-23 15:04:43 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-05-23 15:04:43 +0000
commit064a669c923a0052f7d066ade22cd0c7e27602aa (patch)
treea93cd2c2c4a1208d2b89d7e1a362efcfa85b3d18
parent9389fe19a3ab19e3c15cb3e370f5ae2f8380484a (diff)
Sorry. Changed this while fixing the last bug and forgot to change it
back. Unfortunately, none of my test cases caught it.
-rw-r--r--libc/stdio/scanf.c2
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;
}