From: Cristy Date: Thu, 25 Jan 2018 00:58:53 +0000 (-0500) Subject: Allow room for file extention X-Git-Tag: 7.0.7-23~280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27fd5c72460b2ffb442ceaa2b68649d942a971cd;p=imagemagick Allow room for file extention --- diff --git a/coders/mpc.c b/coders/mpc.c index 72f725acb..d23996d28 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -207,7 +207,7 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) image=DestroyImageList(image); return((Image *) NULL); } - (void) CopyMagickString(cache_filename,image->filename,MagickPathExtent); + (void) CopyMagickString(cache_filename,image->filename,MagickPathExtent-6); AppendImageFormat("cache",cache_filename); c=ReadBlobByte(image); if (c == EOF) @@ -1144,7 +1144,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image, status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); if (status == MagickFalse) return(status); - (void) CopyMagickString(cache_filename,image->filename,MagickPathExtent); + (void) CopyMagickString(cache_filename,image->filename,MagickPathExtent-6); AppendImageFormat("cache",cache_filename); scene=0; offset=0;