From 85d6de50bbee8b1c2a772bc9dcf38e0e7155d041 Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 18 Nov 2011 15:49:27 +0000 Subject: [PATCH] --- MagickCore/configure.c | 4 ++-- MagickCore/locale.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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 -- 2.40.0