Fix svg image check (#247)

Thanks to @wcout for pointing out that "<svg\t" is a valid notation.

The overall length check (>= 5) is left in place intentionally.
This commit is contained in:
Albrecht Schlosser
2021-07-03 19:45:10 +02:00
parent ce26f04f2d
commit 2e9d13c1a2
+1 -1
View File
@@ -161,7 +161,7 @@ fl_check_images(const char *name, // I - Filename
if ((count >= 5 &&
(memcmp(buf, "<?xml", 5) == 0 ||
memcmp(buf, "<svg ", 5) == 0)))
memcmp(buf, "<svg", 4) == 0)))
return new Fl_SVG_Image(name);
#endif // FLTK_USE_SVG