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

index 9fc26f02d0b9fa13439f82364b443bb46801e680..ac41efc497e91d98f30bf14522541a794777824f 100644 (file)
@@ -581,10 +581,11 @@ MagickExport LinkedListInfo *GetConfigureOptions(const char *filename,
     blob=(char *) NTResourceToBlob(filename);
     if (blob != (char *) NULL)
       {
-        xml=StringToStringInfo(blob);
+        xml=AcquireStringInfo(0);
+        xml->length=strlen(blob)+1;
+        xml->datum=(unsigned char *) blob;
         SetStringInfoPath(xml,filename);
         (void) AppendValueToLinkedList(options,xml);
-        blob=DestroyString(blob);
       }
   }
 #endif