Increase SVG buffer check length by 50 bytes

Provides support for files exported by Illustrator
This commit is contained in:
Lovell Fuller 2016-10-19 21:40:18 +01:00
parent 26a534eeac
commit de6a415832
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ vips_foreign_load_svg_is_a_buffer( const void *buf, size_t len )
if( !isascii( str[i] ) )
return( FALSE );
for( i = 0; i < 200 && i < len - 5; i++ )
for( i = 0; i < 250 && i < len - 5; i++ )
if( g_ascii_strncasecmp( str + i, "<svg", 4 ) == 0 )
return( TRUE );