[gimp] Use correct format string for size_t args



commit 9bbfac5c592f8fb33e3cbe5fa7b61feef9dc7351
Author: Mukund Sivaraman <muks banu com>
Date:   Fri Mar 18 00:00:31 2011 +0530

    Use correct format string for size_t args

 plug-ins/gfig/gfig-style.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/gfig/gfig-style.c b/plug-ins/gfig/gfig-style.c
index 94ee0a6..fb9285c 100644
--- a/plug-ins/gfig/gfig-style.c
+++ b/plug-ins/gfig/gfig-style.c
@@ -172,7 +172,7 @@ gfig_read_parameter_gimp_rgb (gchar        **text,
 
   style_entry->r = style_entry->g = style_entry->b = style_entry->a = 0.;
 
-  snprintf (fmt_str, sizeof (fmt_str), "%%%ds %%%ds %%%ds %%%ds",
+  snprintf (fmt_str, sizeof (fmt_str), "%%%zus %%%zus %%%zus %%%zus",
             sizeof (colorstr_r) - 1, sizeof (colorstr_g) - 1,
             sizeof (colorstr_b) - 1, sizeof (colorstr_a) - 1);
 



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