x;
for (x=0; fabs(draw_info->dash_pattern[x]) >= MagickEpsilon; x++) ;
- clone_info->dash_pattern=(double *) AcquireQuantumMemory((size_t) (x+4),
+ clone_info->dash_pattern=(double *) AcquireQuantumMemory((size_t) (x+1),
sizeof(*clone_info->dash_pattern));
if (clone_info->dash_pattern == (double *) NULL)
ThrowFatalException(ResourceLimitFatalError,
GetNextToken(r,&r,extent,token);
}
graphic_context[n]->dash_pattern=(double *)
- AcquireQuantumMemory((size_t) (2*x+4),
+ AcquireQuantumMemory((size_t) (2*x+2),
sizeof(*graphic_context[n]->dash_pattern));
if (graphic_context[n]->dash_pattern == (double *) NULL)
{
break;
}
(void) memset(graphic_context[n]->dash_pattern,0,(size_t)
- (2*x+4)*sizeof(*graphic_context[n]->dash_pattern));
+ (2*x+2)*sizeof(*graphic_context[n]->dash_pattern));
for (j=0; j < x; j++)
{
GetNextToken(q,&q,extent,token);
root->entities=(char **) AcquireMagickMemory(sizeof(predefined_entities));
if (root->entities == (char **) NULL)
return((XMLTreeInfo *) NULL);
- (void) memcpy(root->entities,predefined_entities,
- sizeof(predefined_entities));
+ (void) memcpy(root->entities,predefined_entities,sizeof(predefined_entities));
root->root.attributes=sentinel;
root->attributes=(char ***) root->root.attributes;
root->processing_instructions=(char ***) root->root.attributes;