From: cristy Date: Fri, 18 Nov 2011 15:49:27 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85d6de50bbee8b1c2a772bc9dcf38e0e7155d041;p=imagemagick --- diff --git a/MagickCore/configure.c b/MagickCore/configure.c index ac41efc49..4e07ebc3e 100644 --- a/MagickCore/configure.c +++ b/MagickCore/configure.c @@ -582,8 +582,8 @@ MagickExport LinkedListInfo *GetConfigureOptions(const char *filename, if (blob != (char *) NULL) { xml=AcquireStringInfo(0); - xml->length=strlen(blob)+1; - xml->datum=(unsigned char *) blob; + SetStringInfoLength(xml,strlen(blob)+1); + SetStringInfoDatum(xml,blob); SetStringInfoPath(xml,filename); (void) AppendValueToLinkedList(options,xml); } diff --git a/MagickCore/locale.c b/MagickCore/locale.c index 9668321d1..8e9059098 100644 --- a/MagickCore/locale.c +++ b/MagickCore/locale.c @@ -745,9 +745,11 @@ MagickExport LinkedListInfo *GetLocaleOptions(const char *filename, blob=(char *) NTResourceToBlob(filename); if (blob != (char *) NULL) { - xml=StringToStringInfo(blob); + xml=AcquireStringInfo(0); + SetStringInfoLength(xml,strlen(blob)+1); + SetStringInfoDatum(xml,blob); + SetStringInfoPath(xml,filename); (void) AppendValueToLinkedList(messages,xml); - blob=DestroyString(blob); } } #endif