better compat with older IM

in the ismagick() test
This commit is contained in:
John Cupitt 2019-06-08 17:32:04 +01:00
parent dc8555201d
commit eaaa203f0a
1 changed files with 4 additions and 0 deletions

View File

@ -646,7 +646,11 @@ magick_set_magick_profile( Image *image,
gboolean
magick_ismagick( const unsigned char *bytes, size_t length )
{
#ifdef HAVE_MAGICK7
char format[MagickPathExtent];
#else /*HAVE_MAGICK6*/
char format[MaxTextExtent];
#endif
magick_genesis();