[gimp] Use correct format string for size_t args



commit 2deb14c9befbadaf23384fd1a9be0b0047ea3e56
Author: Mukund Sivaraman <muks banu com>
Date:   Fri Mar 18 00:02:07 2011 +0530

    Use correct format string for size_t args

 plug-ins/lighting/lighting-ui.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/lighting/lighting-ui.c b/plug-ins/lighting/lighting-ui.c
index 73ac818..742eb62 100644
--- a/plug-ins/lighting/lighting-ui.c
+++ b/plug-ins/lighting/lighting-ui.c
@@ -1393,7 +1393,7 @@ load_preset_response (GtkFileChooser *chooser,
                 }
 
               snprintf (fmt_str, sizeof (fmt_str),
-                        " Position: %%%ds %%%ds %%%ds",
+                        " Position: %%%zus %%%zus %%%zus",
                         sizeof (buffer1) - 1,
                         sizeof (buffer2) - 1,
                         sizeof (buffer3) - 1);
@@ -1403,7 +1403,7 @@ load_preset_response (GtkFileChooser *chooser,
               source->position.z = g_ascii_strtod (buffer3, &endptr);
 
               snprintf (fmt_str, sizeof (fmt_str),
-                        " Direction: %%%ds %%%ds %%%ds",
+                        " Direction: %%%zus %%%zus %%%zus",
                         sizeof (buffer1) - 1,
                         sizeof (buffer2) - 1,
                         sizeof (buffer3) - 1);
@@ -1413,7 +1413,7 @@ load_preset_response (GtkFileChooser *chooser,
               source->direction.z = g_ascii_strtod (buffer3, &endptr);
 
               snprintf (fmt_str, sizeof (fmt_str),
-                        " Color: %%%ds %%%ds %%%ds",
+                        " Color: %%%zus %%%zus %%%zus",
                         sizeof (buffer1) - 1,
                         sizeof (buffer2) - 1,
                         sizeof (buffer3) - 1);
@@ -1424,7 +1424,7 @@ load_preset_response (GtkFileChooser *chooser,
               source->color.a = 1.0;
 
               snprintf (fmt_str, sizeof (fmt_str),
-                        " Intensity: %%%ds",
+                        " Intensity: %%%zus",
                         sizeof (buffer1) - 1);
               fscanf (fp, fmt_str, buffer1);
               source->intensity = g_ascii_strtod (buffer1, &endptr);



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