]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 18 Nov 2011 15:49:27 +0000 (15:49 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 18 Nov 2011 15:49:27 +0000 (15:49 +0000)
MagickCore/configure.c
MagickCore/locale.c

index ac41efc497e91d98f30bf14522541a794777824f..4e07ebc3e209cc8486bfa68429d5ce531b40948f 100644 (file)
@@ -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);
       }
index 9668321d13a92565d2efc760b31b714424046c7d..8e905909830a536b49b641fde449d9b0e50d77ca 100644 (file)
@@ -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