Commit 7baedf02 authored by Michael Natterer's avatar Michael Natterer 😴

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

(cherry picked from commit bcf9c943)
parent 6c46891c
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment