changeset 3615:4a4371a7cd4f

Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value test fix.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 06 Jan 2010 07:45:58 +0000
parents 701f54683b24
children 0aaa7f52d1c6
files src/video/fbcon/SDL_fbvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))