]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 16 Feb 2014 21:52:32 +0000 (21:52 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 16 Feb 2014 21:52:32 +0000 (21:52 +0000)
MagickCore/locale.c

index 98453e4883676dc22cb0b558959f6b7264f07fc0..ed6c0c05344662356a228fcb36b1f6f77295f0df 100644 (file)
@@ -1252,8 +1252,7 @@ static MagickBooleanType LoadLocaleList(const char *xml,const char *filename,
         q--;
         while ((isspace((int) ((unsigned char) *q)) != 0) && (q > p))
           q--;
-        (void) CopyMagickString(message,p,MagickMin(q-p+2,sizeof(message)-
-          strlen(message)));
+        (void) CopyMagickString(message,p,MagickMin(q-p+2,MaxTextExtent));
         locale_info=(LocaleInfo *) AcquireMagickMemory(sizeof(*locale_info));
         if (locale_info == (LocaleInfo *) NULL)
           ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");