mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user