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 b1b1af8b95
commit bb655f01d3

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;
}