% July 1992 %
% %
% %
-% Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2018 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
% obtain a copy of the License at %
% %
-% http://www.imagemagick.org/script/license.php %
+% https://www.imagemagick.org/script/license.php %
% %
% Unless required by applicable law or agreed to in writing, software %
% distributed under the License is distributed on an "AS IS" BASIS, %
Expand the filename.
*/
assert(image_info != (const ImageInfo *) NULL);
- assert(image_info->signature == MagickSignature);
+ assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
- assert(exception->signature == MagickSignature);
+ assert(exception->signature == MagickCoreSignature);
image=AcquireImage(image_info,exception);
filelist=(char **) AcquireMagickMemory(sizeof(*filelist));
if (filelist == (char **) NULL)
if (image_info->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),"name: %s",
filelist[i]);
- (void) CopyMagickString(read_info->filename,filelist[i],MaxTextExtent);
+ (void) CopyMagickString(read_info->filename,filelist[i],MagickPathExtent);
filelist[i]=DestroyString(filelist[i]);
*read_info->magick='\0';
next_image=ReadImage(read_info,exception);
if (montage_image == (Image *) NULL)
return(MagickFalse);
(void) CopyMagickString(montage_image->filename,image_info->filename,
- MaxTextExtent);
+ MagickPathExtent);
write_info=CloneImageInfo(image_info);
+ *write_info->magick='\0';
(void) SetImageInfo(write_info,1,exception);
- if (LocaleCompare(write_info->magick,"VID") == 0)
- (void) FormatLocaleString(montage_image->filename,MaxTextExtent,
+ if ((*write_info->magick == '\0') ||
+ (LocaleCompare(write_info->magick,"VID") == 0))
+ (void) FormatLocaleString(montage_image->filename,MagickPathExtent,
"miff:%s",write_info->filename);
status=WriteImage(write_info,montage_image,exception);
montage_image=DestroyImage(montage_image);