Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value t…
Browse files Browse the repository at this point in the history
…est fix.
  • Loading branch information
icculus committed Jan 6, 2010
1 parent b9bf96f commit 20aac07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/fbcon/SDL_fbvideo.c
Expand Up @@ -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))
Expand Down

0 comments on commit 20aac07

Please sign in to comment.