ソースを参照

Sorry. Changed this while fixing the last bug and forgot to change it
back. Unfortunately, none of my test cases caught it.

Manuel Novoa III 22 年 前
コミット
064a669c92
1 ファイル変更1 行追加1 行削除
  1. 1 1
      libc/stdio/scanf.c

+ 1 - 1
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 */
 				if (p-spec < 5) { /* [,c,s - string conversions */
 					invert = 0;
 					invert = 0;
 					if (*p == 'c') {
 					if (*p == 'c') {
-						invert = 0;
+						invert = 1;
 						if (sc.width == INT_MAX) {
 						if (sc.width == INT_MAX) {
 							sc.width = 1;
 							sc.width = 1;
 						}
 						}