%
*/
-static StringInfo *AcquireEmptyStringInfo()
+static StringInfo *AcquireStringInfoContainer()
{
StringInfo
*string_info;
StringInfo
*string_info;
- string_info=AcquireEmptyStringInfo();
+ string_info=AcquireStringInfoContainer();
string_info->length=length;
if (~string_info->length >= (MagickPathExtent-1))
string_info->datum=(unsigned char *) AcquireQuantumMemory(
if (~length < MagickPathExtent)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
- string_info=AcquireEmptyStringInfo();
+ string_info=AcquireStringInfoContainer();
string_info->length=length;
string_info->datum=(unsigned char *) AcquireQuantumMemory(length+
MagickPathExtent,sizeof(*string_info->datum));
}
string[length]='\0';
file=close(file)-1;
- string_info=AcquireEmptyStringInfo();
+ string_info=AcquireStringInfoContainer();
string_info->path=ConstantString(filename);
string_info->length=length;
string_info->datum=(unsigned char *) string;
assert(filename != (const char *) NULL);
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",filename);
assert(exception != (ExceptionInfo *) NULL);
- string_info=AcquireEmptyStringInfo();
+ string_info=AcquireStringInfoContainer();
string_info->path=ConstantString(filename);
string_info->datum=(unsigned char *) FileToBlob(filename,extent,
&string_info->length,exception);