diff options
Diffstat (limited to 'src/Fl_BMP_Image.cxx')
| -rw-r--r-- | src/Fl_BMP_Image.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_BMP_Image.cxx b/src/Fl_BMP_Image.cxx index 8587790bc..2b8693264 100644 --- a/src/Fl_BMP_Image.cxx +++ b/src/Fl_BMP_Image.cxx @@ -177,7 +177,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read for (repcount = 0; repcount < colors_used; repcount ++) { // Read BGR color... - fread(colormap[repcount], 1, 3, fp); + if (fread(colormap[repcount], 1, 3, fp)==0) { /* ignore */ } // Skip pad byte for new BMP files... if (info_size > 12) getc(fp); |
