#endif
typedef struct _MagicInfo
-{
- char
- *path,
- *name,
- *target;
-
- unsigned char
- *magic;
-
- size_t
- length;
-
- MagickOffsetType
- offset;
-
- MagickBooleanType
- exempt,
- stealth;
-
- size_t
- signature;
-} MagicInfo;
+ MagicInfo;
extern MagickExport char
**GetMagicList(const char *,size_t *,ExceptionInfo *);
if(magic_info == (const MagicInfo *) NULL) goto FINISH_UNL;
/* printf("Detected:%s \n",magic_info->name); */
if(exception->severity != UndefinedException) goto FINISH_UNL;
- if(magic_info->name == (char *) NULL) goto FINISH_UNL;
- (void) strncpy(clone_info->magick,magic_info->name,MagickPathExtent-1);
+ (void) strncpy(clone_info->magick,GetMagicName(magic_info),
+ MagickPathExtent-1);
if (LocaleCompare(clone_info->magick,"PFB") != 0)
{
ThrowException(exception,CorruptImageError,"ImproperImageHeader",