]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 3 Sep 2010 02:24:42 +0000 (02:24 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 3 Sep 2010 02:24:42 +0000 (02:24 +0000)
config/configure.xml
magick/string.c
magick/version.h

index 008964ba46b0634ab70a459209f0be84dfdf76aa..7a4c915b9c94c443dfaa4a35d25a904f5af7b94e 100644 (file)
@@ -9,7 +9,7 @@
   <configure name="NAME" value="ImageMagick"/>
   <configure name="LIB_VERSION" value="0x664"/>
   <configure name="LIB_VERSION_NUMBER" value="6,6,4,0"/>
-  <configure name="RELEASE_DATE" value="2010-08-31"/>
+  <configure name="RELEASE_DATE" value="2010-09-02"/>
   <configure name="CONFIGURE" value="./configure "/>
   <configure name="PREFIX" value="/usr/local"/>
   <configure name="EXEC-PREFIX" value="/usr/local"/>
index b58bb0f6902c49cf44bf46f842682d6fc6ea290c..dbf39f722ac78136b56d970a5d9690dbdb6e52e3 100644 (file)
@@ -126,7 +126,10 @@ MagickExport char *AcquireString(const char *source)
     ThrowFatalException(ResourceLimitFatalError,"UnableToAcquireString");
   *destination='\0';
   if (source != (char *) NULL)
-    (void) CopyMagickString(destination,source,(length+1)*sizeof(*destination));
+    {
+      (void) CopyMagickMemory(destination,source,length*sizeof(*destination));
+      destination[length]='\0';
+    }
   return(destination);
 }
 \f
@@ -225,7 +228,8 @@ MagickExport char *CloneString(char **destination,const char *source)
     sizeof(*destination));
   if (*destination == (char *) NULL)
     ThrowFatalException(ResourceLimitFatalError,"UnableToAcquireString");
-  (void) CopyMagickString(*destination,source,(length+1)*sizeof(*destination));
+  (void) CopyMagickMemory(*destination,source,length*sizeof(*destination));
+  (*destination)[length]='\0';
   return(*destination);
 }
 \f
@@ -637,7 +641,10 @@ MagickExport char *ConstantString(const char *source)
     ThrowFatalException(ResourceLimitFatalError,"UnableToAcquireString");
   *destination='\0';
   if (source != (char *) NULL)
-    (void) CopyMagickString(destination,source,(length+1)*sizeof(*destination));
+    {
+      (void) CopyMagickMemory(destination,source,length*sizeof(*destination));
+      destination[length]='\0';
+    }
   return(destination);
 }
 \f
@@ -1851,9 +1858,11 @@ MagickExport char *StringInfoToString(const StringInfo *string_info)
   length=string_info->length;
   if (~length >= MaxTextExtent)
     string=(char *) AcquireQuantumMemory(length+MaxTextExtent,sizeof(*string));
-  if (string != (char *) NULL)
-    (void) CopyMagickString(string,(char *) string_info->datum,
-      (length+1)*sizeof(*string));
+  if (string == (char *) NULL)
+    return((char *) NULL);
+  (void) CopyMagickMemory(string,(char *) string_info->datum,length*
+    sizeof(*string));
+  string[length]='\0';
   return(string);
 }
 \f
@@ -1953,7 +1962,8 @@ MagickExport char **StringToArgv(const char *text,int *argc)
         ThrowFatalException(ResourceLimitFatalError,
           "UnableToConvertStringToARGV");
       }
-    (void) CopyMagickString(argv[i],p,(size_t) (q-p+1));
+    (void) CopyMagickMemory(argv[i],p,(size_t) (q-p));
+    argv[i][q-p]='\0';
     p=q;
     while ((isspace((int) ((unsigned char) *p)) == 0) && (*p != '\0'))
       p++;
@@ -2122,9 +2132,6 @@ MagickExport char *StringToken(const char *delimiters,char **string)
 %
 %  A description of each parameter follows:
 %
-%    o list:  Method StringToList returns the string list unless an error
-%      occurs, otherwise NULL.
-%
 %    o text:  Specifies the string to segment into a list.
 %
 */
@@ -2174,7 +2181,8 @@ MagickExport char **StringToList(const char *text)
           sizeof(*textlist));
         if (textlist[i] == (char *) NULL)
           ThrowFatalException(ResourceLimitFatalError,"UnableToConvertText");
-        (void) CopyMagickString(textlist[i],p,(size_t) (q-p+1));
+        (void) CopyMagickMemory(textlist[i],p,(size_t) (q-p));
+        textlist[i][q-p]='\0';
         if (*q == '\r')
           q++;
         p=q+1;
index 1f906fbcd0ef0e7ac59f59c7b3fc09e798a6af0a..9d60f108226db5db5181dd85b62edc66bf7d44d0 100644 (file)
@@ -33,8 +33,8 @@ extern "C" {
 #define MagickLibAddendum  "-0"
 #define MagickLibInterface  4
 #define MagickLibMinInterface  4
-#define MagickReleaseDate  "2010-08-31"
-#define MagickChangeDate   "20100823"
+#define MagickReleaseDate  "2010-09-02"
+#define MagickChangeDate   "20100902"
 #define MagickAuthoritativeURL  "http://www.imagemagick.org"
 #define MagickFeatures  "OpenMP "
 #define MagickHomeURL  "file:///usr/local/share/doc/ImageMagick-6.6.4/index.html"