Do not call getc if getwc fails - mixing wide and byte-based readin may cause a crash. IT's better to simply hope that getwc can recover.

darcs-hash:20070127021026-ac50b-b85e10029d2bc0ce4857ec48945a92270e499a07.gz
This commit is contained in:
axel 2007-01-27 12:10:26 +10:00
parent f2ccbe7374
commit d480d892c9

View file

@ -183,8 +183,6 @@ int fgetws2( wchar_t **b, int *len, FILE *f )
if( errno == EILSEQ )
{
getc( f );
continue;
}