Fixed compiler warning for unchecked fgets return value.
This commit is contained in:
parent
6271d63ba6
commit
9a30cce921
|
@ -252,9 +252,14 @@ FCEUD_SendData(void *data,
|
|||
if(!error && check) {
|
||||
char buf[1024];
|
||||
char *f;
|
||||
fgets(buf, 1024, stdin);
|
||||
if((f=strrchr(buf,'\n'))) {
|
||||
*f = 0;
|
||||
|
||||
buf[0] = 0;
|
||||
|
||||
if ( fgets(buf, 1024, stdin) )
|
||||
{
|
||||
if((f=strrchr(buf,'\n'))) {
|
||||
*f = 0;
|
||||
}
|
||||
}
|
||||
FCEUI_NetplayText((uint8 *)buf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue