[gimp] app: s/sprintf/g_snprintf/ in xcf_save_image()



commit bcf9c9435886677174229fb3a893892b2db419ad
Author: Michael Natterer <mitch gimp org>
Date:   Tue Aug 21 12:19:55 2018 +0200

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

 app/xcf/xcf-save.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index fdebcd7447..12cf3b24fe 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -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
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]