if (image->debug != MagickFalse)
{
char
- format[MaxTextExtent],
+ format[MagickPathExtent],
*message;
(void) LogMagickEvent(TransformEvent,GetMagickModule(),
for (v=0; v < 6; v++)
{
*message='\0';
- (void) FormatLocaleString(format,MaxTextExtent,"%.20g: ",(double) v);
+ (void) FormatLocaleString(format,MagickPathExtent,"%.20g: ",(double) v);
(void) ConcatenateString(&message,format);
for (u=0; u < 6; u++)
{
- (void) FormatLocaleString(format,MaxTextExtent,"%+f ",
+ (void) FormatLocaleString(format,MagickPathExtent,"%+f ",
ColorMatrix[v][u]);
(void) ConcatenateString(&message,format);
}
channel_mask;
char
- key[MaxTextExtent],
- statistic[MaxTextExtent];
+ key[MagickPathExtent],
+ statistic[MagickPathExtent];
const char
*value;
SetPixelChannelMask(image,channel_mask);
}
}
- (void) FormatLocaleString(key,MaxTextExtent,"%p.%.20g.%s",(void *) image,
+ (void) FormatLocaleString(key,MagickPathExtent,"%p.%.20g.%s",(void *) image,
(double) channel,symbol);
value=(const char *) GetValueFromSplayTree(fx_info->symbols,key);
if (value != (const char *) NULL)
depth;
depth=GetImageDepth(image,exception);
- (void) FormatLocaleString(statistic,MaxTextExtent,"%.20g",(double) depth);
+ (void) FormatLocaleString(statistic,MagickPathExtent,"%.20g",(double) depth);
}
if (LocaleNCompare(symbol,"kurtosis",8) == 0)
{
skewness;
(void) GetImageKurtosis(image,&kurtosis,&skewness,exception);
- (void) FormatLocaleString(statistic,MaxTextExtent,"%g",kurtosis);
+ (void) FormatLocaleString(statistic,MagickPathExtent,"%g",kurtosis);
}
if (LocaleNCompare(symbol,"maxima",6) == 0)
{
minima;
(void) GetImageRange(image,&minima,&maxima,exception);
- (void) FormatLocaleString(statistic,MaxTextExtent,"%g",maxima);
+ (void) FormatLocaleString(statistic,MagickPathExtent,"%g",maxima);
}
if (LocaleNCompare(symbol,"mean",4) == 0)
{
standard_deviation;
(void) GetImageMean(image,&mean,&standard_deviation,exception);
- (void) FormatLocaleString(statistic,MaxTextExtent,"%g",mean);
+ (void) FormatLocaleString(statistic,MagickPathExtent,"%g",mean);
}
if (LocaleNCompare(symbol,"minima",6) == 0)
{
minima;
(void) GetImageRange(image,&minima,&maxima,exception);
- (void) FormatLocaleString(statistic,MaxTextExtent,"%g",minima);
+ (void) FormatLocaleString(statistic,MagickPathExtent,"%g",minima);
}
if (LocaleNCompare(symbol,"skewness",8) == 0)
{
skewness;
(void) GetImageKurtosis(image,&kurtosis,&skewness,exception);
- (void) FormatLocaleString(statistic,MaxTextExtent,"%g",skewness);
+ (void) FormatLocaleString(statistic,MagickPathExtent,"%g",skewness);
}
if (LocaleNCompare(symbol,"standard_deviation",18) == 0)
{
standard_deviation;
(void) GetImageMean(image,&mean,&standard_deviation,exception);
- (void) FormatLocaleString(statistic,MaxTextExtent,"%g",
+ (void) FormatLocaleString(statistic,MagickPathExtent,"%g",
standard_deviation);
}
if (channel_mask != UndefinedChannel)
{
char
*q,
- subexpression[MaxTextExtent],
- symbol[MaxTextExtent];
+ subexpression[MagickPathExtent],
+ symbol[MagickPathExtent];
const char
*p,
(LocaleCompare(p,"lightness") != 0))
{
char
- name[MaxTextExtent];
+ name[MagickPathExtent];
- (void) CopyMagickString(name,p,MaxTextExtent);
+ (void) CopyMagickString(name,p,MagickPathExtent);
for (q=name+(strlen(name)-1); q > name; q--)
{
if (*q == ')')
}
}
}
- (void) CopyMagickString(symbol,p,MaxTextExtent);
+ (void) CopyMagickString(symbol,p,MagickPathExtent);
StripString(symbol);
if (*symbol == '\0')
{
{
char
*q,
- subexpression[MaxTextExtent];
+ subexpression[MagickPathExtent];
double
alpha,
double
gamma;
- (void) CopyMagickString(subexpression,++p,MaxTextExtent);
+ (void) CopyMagickString(subexpression,++p,MagickPathExtent);
q=subexpression;
p=StringToken(":",&q);
if (q == (char *) NULL)
case '=':
{
char
- numeric[MaxTextExtent];
+ numeric[MagickPathExtent];
q=subexpression;
while (isalpha((int) ((unsigned char) *q)) != 0)
}
ClearMagickException(exception);
*beta=FxEvaluateSubexpression(fx_info,channel,x,y,++p,beta,exception);
- (void) FormatLocaleString(numeric,MaxTextExtent,"%g",(double)
+ (void) FormatLocaleString(numeric,MagickPathExtent,"%g",(double)
*beta);
(void) DeleteNodeFromSplayTree(fx_info->symbols,subexpression);
(void) AddValueToSplayTree(fx_info->symbols,ConstantString(
}
if (strchr("(",(int) *expression) != (char *) NULL)
{
- (void) CopyMagickString(subexpression,expression+1,MaxTextExtent);
+ (void) CopyMagickString(subexpression,expression+1,MagickPathExtent);
subexpression[strlen(subexpression)-1]='\0';
gamma=FxEvaluateSubexpression(fx_info,channel,x,y,subexpression,beta,
exception);
case AlphaPixelChannel: type="opacity"; break;
default: type="unknown"; break;
}
- (void) CopyMagickString(subexpression,expression+6,MaxTextExtent);
+ (void) CopyMagickString(subexpression,expression+6,MagickPathExtent);
if (strlen(subexpression) > 1)
subexpression[strlen(subexpression)-1]='\0';
if (fx_info->file != (FILE *) NULL)
if (caption != (const char *) NULL)
{
char
- geometry[MaxTextExtent],
+ geometry[MagickPathExtent],
*text;
DrawInfo
caption_image->background_color=image->border_color;
(void) SetImageBackgroundColor(caption_image,exception);
(void) CloneString(&annotate_info->text,text);
- (void) FormatLocaleString(geometry,MaxTextExtent,"+0+%g",
+ (void) FormatLocaleString(geometry,MagickPathExtent,"+0+%g",
metrics.ascent);
if (annotate_info->gravity == UndefinedGravity)
(void) CloneString(&annotate_info->geometry,AcquireString(
const double sigma,const ssize_t x,const ssize_t y,ExceptionInfo *exception)
{
char
- ellipse[MaxTextExtent];
+ ellipse[MagickPathExtent];
DrawInfo
*draw_info;
exception);
(void) QueryColorCompliance("#ffffff",AllCompliance,&draw_info->stroke,
exception);
- (void) FormatLocaleString(ellipse,MaxTextExtent,"ellipse %g,%g,%g,%g,"
+ (void) FormatLocaleString(ellipse,MagickPathExtent,"ellipse %g,%g,%g,%g,"
"0.0,360.0",image->columns/2.0,image->rows/2.0,image->columns/2.0-x,
image->rows/2.0-y);
draw_info->primitive=AcquireString(ellipse);