fix parsing of filenames containing brackets
oops, missed part of a regexp in parse_token, see: https://github.com/jcupitt/libvips/issues/395 thanks shilpi230
This commit is contained in:
parent
e4b31dde38
commit
5a60dd26f9
@ -1,5 +1,6 @@
|
|||||||
27/1/16 started 8.2.3
|
27/1/16 started 8.2.3
|
||||||
- fix a crash with SPARC byte-order labq vips images
|
- fix a crash with SPARC byte-order labq vips images
|
||||||
|
- fix parsing of filenames containing brackets, thanks shilpi230
|
||||||
|
|
||||||
12/1/16 started 8.2.2
|
12/1/16 started 8.2.2
|
||||||
- changes to ease compiling C++ binding with MSVC [Lovell Fuller]
|
- changes to ease compiling C++ binding with MSVC [Lovell Fuller]
|
||||||
|
@ -1228,7 +1228,7 @@ vips__token_get( const char *p, VipsToken *token, char *string, int size )
|
|||||||
* so the next break must be bracket, equals, comma.
|
* so the next break must be bracket, equals, comma.
|
||||||
*/
|
*/
|
||||||
*token = VIPS_TOKEN_STRING;
|
*token = VIPS_TOKEN_STRING;
|
||||||
n = strcspn( p, "<[{()}]>=," );
|
n = strcspn( p, "[]=," );
|
||||||
i = VIPS_MIN( n, size );
|
i = VIPS_MIN( n, size );
|
||||||
vips_strncpy( string, p, i + 1 );
|
vips_strncpy( string, p, i + 1 );
|
||||||
p += n;
|
p += n;
|
||||||
|
Loading…
Reference in New Issue
Block a user