Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/loaders/xpm Modified Files: evas_image_load_xpm.c Log Message: fix unknown buffer content chekc problems =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/loaders/xpm/evas_image_load_xpm.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- evas_image_load_xpm.c 25 Aug 2007 02:07:16 -0000 1.12 +++ evas_image_load_xpm.c 28 Oct 2007 10:08:32 -0000 1.13 @@ -128,7 +128,12 @@ xpm_parse_done(); return 0; } - fread(s, 1, 9, f); + if (fread(s, 9, 1, f) != 1) + { + fclose(f); + xpm_parse_done(); + return 0; + } rewind(f); s[9] = 0; if (strcmp("/* XPM */", s)) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs