mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 10:14:57 -05:00
Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value test fix.
This commit is contained in:
@@ -314,7 +314,7 @@ read_fbmodes_line(FILE * f, char *line, int length)
|
||||
blank = 0;
|
||||
/* find a relevant line */
|
||||
do {
|
||||
if (fgets(line, length, f) <= 0)
|
||||
if (!fgets(line, length, f))
|
||||
return 0;
|
||||
c = line;
|
||||
while (((*c == '\t') || (*c == ' ')) && (*c != 0))
|
||||
|
||||
Reference in New Issue
Block a user