comparison src/video/fbcon/SDL_fbvideo.c @ 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 99210400e8b9
children f7b03b6838cb
comparison
equal deleted inserted replaced
3614:701f54683b24 3615:4a4371a7cd4f
312 int i; 312 int i;
313 313
314 blank = 0; 314 blank = 0;
315 /* find a relevant line */ 315 /* find a relevant line */
316 do { 316 do {
317 if (fgets(line, length, f) <= 0) 317 if (!fgets(line, length, f))
318 return 0; 318 return 0;
319 c = line; 319 c = line;
320 while (((*c == '\t') || (*c == ' ')) && (*c != 0)) 320 while (((*c == '\t') || (*c == ' ')) && (*c != 0))
321 c++; 321 c++;
322 322