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) {
|
if(!error && check) {
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
char *f;
|
char *f;
|
||||||
fgets(buf, 1024, stdin);
|
|
||||||
if((f=strrchr(buf,'\n'))) {
|
buf[0] = 0;
|
||||||
*f = 0;
|
|
||||||
|
if ( fgets(buf, 1024, stdin) )
|
||||||
|
{
|
||||||
|
if((f=strrchr(buf,'\n'))) {
|
||||||
|
*f = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
FCEUI_NetplayText((uint8 *)buf);
|
FCEUI_NetplayText((uint8 *)buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue