From bca58f3e54324602dbfe91102715646f23a2ad99 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 21 Aug 2011 14:48:50 +0000 Subject: [PATCH] --- MagickCore/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.40.0