Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value test fix.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 06 Jan 2010 07:45:58 +0000
changeset 36154a4371a7cd4f
parent 3614 701f54683b24
child 3616 0aaa7f52d1c6
Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value test fix.
src/video/fbcon/SDL_fbvideo.c
     1.1 --- a/src/video/fbcon/SDL_fbvideo.c	Wed Jan 06 07:39:35 2010 +0000
     1.2 +++ b/src/video/fbcon/SDL_fbvideo.c	Wed Jan 06 07:45:58 2010 +0000
     1.3 @@ -314,7 +314,7 @@
     1.4      blank = 0;
     1.5      /* find a relevant line */
     1.6      do {
     1.7 -        if (fgets(line, length, f) <= 0)
     1.8 +        if (!fgets(line, length, f))
     1.9              return 0;
    1.10          c = line;
    1.11          while (((*c == '\t') || (*c == ' ')) && (*c != 0))