From: cristy Date: Sun, 21 Aug 2011 14:48:50 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bca58f3e54324602dbfe91102715646f23a2ad99;p=imagemagick --- diff --git a/MagickCore/string.c b/MagickCore/string.c index 50bd4b09b..4e1504fd8 100644 --- a/MagickCore/string.c +++ b/MagickCore/string.c @@ -2199,7 +2199,7 @@ MagickExport char **StringToList(const char *text) % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% StringToStringInfo() returns the contents of a file as a string. +% StringToStringInfo() converts a string to a StringInfo type. % % The format of the StringToStringInfo method is: % @@ -2217,7 +2217,7 @@ MagickExport StringInfo *StringToStringInfo(const char *string) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); assert(string != (const char *) NULL); - string_info=AcquireStringInfo(strlen(string)+1); + string_info=AcquireStringInfo(strlen(string)); SetStringInfoDatum(string_info,(const unsigned char *) string); return(string_info); }