src/video/fbcon/SDL_fbvideo.c
changeset 3615 4a4371a7cd4f
parent 2859 99210400e8b9
child 3697 f7b03b6838cb
--- a/src/video/fbcon/SDL_fbvideo.c	Wed Jan 06 07:39:35 2010 +0000
+++ b/src/video/fbcon/SDL_fbvideo.c	Wed Jan 06 07:45:58 2010 +0000
@@ -314,7 +314,7 @@
     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))