Logic error in previous: don't exit the loop when an incomplete multibyte

sequence is detected.
This commit is contained in:
tjr 2002-09-18 10:21:41 +00:00
parent 3bf99ddf54
commit 7d203a48a9

View File

@ -61,7 +61,7 @@ fgetwc(FILE *fp)
return (wc);
else if (nconv == 0)
return (L'\0');
else if (nconv == (size_t)-2 || nconv == (size_t)-1)
else if (nconv == (size_t)-1)
break;
}