From 20aac07857014c215f38878ed29154e2c000e73d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 6 Jan 2010 07:45:58 +0000 Subject: [PATCH] Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value test fix. --- src/video/fbcon/SDL_fbvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/fbcon/SDL_fbvideo.c b/src/video/fbcon/SDL_fbvideo.c index 4ab77ee76..b3287ba84 100644 --- a/src/video/fbcon/SDL_fbvideo.c +++ b/src/video/fbcon/SDL_fbvideo.c @@ -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))