% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% 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:
%
(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);
}