diff --git a/src/fl_images_core.cxx b/src/fl_images_core.cxx index d610fb8c41b34b5be7e26c0e3b453d01fb1e4b8c..624b6f4c37270ae2fabc1c41242f59d6c5bab36a 100644 --- a/src/fl_images_core.cxx +++ b/src/fl_images_core.cxx @@ -86,10 +86,8 @@ fl_check_images(const char *name, // I - Filename #endif // HAVE_LIBPNG #ifdef HAVE_LIBJPEG - if (memcmp(header, "\377\330\377", 3) == 0 && - // Start-of-Image - header[3] >= 0xc0 && header[3] <= 0xef) - // APPn for JPEG file + if (memcmp(header, "\377\330\377", 3) == 0 && // Start-of-Image + header[3] >= 0xc0 && header[3] <= 0xfe) // APPn .. comment for JPEG file return new Fl_JPEG_Image(name); #endif // HAVE_LIBJPEG