% The format of the AcquireFxInfo method is:
%
% FxInfo *AcquireFxInfo(Image *image,const char *expression)
+%
% A description of each parameter follows:
%
% o image: the image.
exception);
return(gamma);
}
- switch (*expression)
+ switch ((unsigned char) *expression)
{
case '+':
{
Replace string.
*/
if (search_extent != replace_extent)
- (void) memcpy(p+replace_extent,p+search_extent,strlen(p+search_extent)+1);
- (void) memcpy(p,replace,replace_extent);
+ (void) CopyMagickMemory(p+replace_extent,p+search_extent,
+ strlen(p+search_extent)+1);
+ (void) CopyMagickMemory(p,replace,replace_extent);
p+=replace_extent-1;
}
return(status);