From: cristy Date: Sun, 16 Feb 2014 21:52:32 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2666 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8964d0360adac0d827778dd591cf1fefeee629e4;p=imagemagick --- diff --git a/MagickCore/locale.c b/MagickCore/locale.c index 98453e488..ed6c0c053 100644 --- a/MagickCore/locale.c +++ b/MagickCore/locale.c @@ -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");