app: s/sprintf/g_snprintf/ in xcf_save_image()

This commit is contained in:
Michael Natterer 2018-08-21 12:19:55 +02:00
parent ec80a88513
commit bcf9c94358
1 changed files with 2 additions and 1 deletions

View File

@ -237,7 +237,8 @@ xcf_save_image (XcfInfo *info,
/* write out the tag information for the image */
if (info->file_version > 0)
{
sprintf (version_tag, "gimp xcf v%03d", info->file_version);
g_snprintf (version_tag, sizeof (version_tag),
"gimp xcf v%03d", info->file_version);
}
else
{