mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
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:
parent
f2ccbe7374
commit
d480d892c9
1 changed files with 0 additions and 2 deletions
2
common.c
2
common.c
|
@ -183,8 +183,6 @@ int fgetws2( wchar_t **b, int *len, FILE *f )
|
||||||
|
|
||||||
if( errno == EILSEQ )
|
if( errno == EILSEQ )
|
||||||
{
|
{
|
||||||
|
|
||||||
getc( f );
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue