(void) WriteBlobString(image,"/* XPM */\n");
GetPathComponent(picon->filename,BasePath,basename);
(void) FormatLocaleString(buffer,MagickPathExtent,
- "static char *%s[] = {\n",basename);
+ "static char *%.1024s[] = {\n",basename);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"/* columns rows colors chars-per-pixel */\n");
(void) FormatLocaleString(buffer,MagickPathExtent,
symbol[j]=Cixel[k];
}
symbol[j]='\0';
- (void) FormatLocaleString(buffer,MagickPathExtent,"\"%s c %s\",\n",
- symbol,name);
+ (void) FormatLocaleString(buffer,MagickPathExtent,
+ "\"%.1024s c %.1024s\",\n",symbol,name);
(void) WriteBlobString(image,buffer);
}
/*
(void) WriteBlobString(image,buffer);
p+=GetPixelChannels(picon);
}
- (void) FormatLocaleString(buffer,MagickPathExtent,"\"%s\n",
+ (void) FormatLocaleString(buffer,MagickPathExtent,"\"%.1024s\n",
y == (ssize_t) (picon->rows-1) ? "" : ",");
(void) WriteBlobString(image,buffer);
status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y,
GetPathComponent(image->filename,BasePath,basename);
if (isalnum((int) ((unsigned char) *basename)) == 0)
{
- (void) FormatLocaleString(buffer,MagickPathExtent,"xpm_%s",basename);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"xpm_%.1024s",basename);
(void) CopyMagickString(basename,buffer,MagickPathExtent);
}
if (isalpha((int) ((unsigned char) basename[0])) == 0)
if (isalnum((int) ((unsigned char) basename[i])) == 0)
basename[i]='_';
(void) FormatLocaleString(buffer,MagickPathExtent,
- "static char *%s[] = {\n",basename);
+ "static char *%.1024s[] = {\n",basename);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"/* columns rows colors chars-per-pixel */\n");
(void) FormatLocaleString(buffer,MagickPathExtent,
symbol[j]=Cixel[k];
}
symbol[j]='\0';
- (void) FormatLocaleString(buffer,MagickPathExtent,"\"%s c %s\",\n",symbol,
- name);
+ (void) FormatLocaleString(buffer,MagickPathExtent,
+ "\"%.1024s c %.1024s\",\n",symbol,name);
(void) WriteBlobString(image,buffer);
}
/*
(void) WriteBlobString(image,buffer);
p+=GetPixelChannels(image);
}
- (void) FormatLocaleString(buffer,MagickPathExtent,"\"%s\n",
+ (void) FormatLocaleString(buffer,MagickPathExtent,"\"%.1024s\n",
(y == (ssize_t) (image->rows-1) ? "" : ","));
(void) WriteBlobString(image,buffer);
if (image->previous == (Image *) NULL)