summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2016-06-27 11:53:30 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-06-27 11:53:30 +0800
commitcd44f6d875c0011931a360901c233f79c1bfde10 (patch)
tree449f7f712c95a1bb6307a4fe518570a6afa4f4ba /gtk/gtkspinbutton.c
parent325fc609311a451686750328a153a7bac1e660e5 (diff)
downloadgtk+-cd44f6d875c0011931a360901c233f79c1bfde10.tar.gz
Fix build of commit f23e99b
Commit f23e99b made use of snprintf(), which is not universally available. Fix this by using g_snprintf().
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r--gtk/gtkspinbutton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index c159f26d3a..452ed33468 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -1121,7 +1121,7 @@ weed_out_neg_zero (gchar *str, gint digits)
if (str[0] == '-')
{
gchar neg_zero[8];
- snprintf (neg_zero, 8, "%0.*f", digits, -0.0);
+ g_snprintf (neg_zero, 8, "%0.*f", digits, -0.0);
if (strcmp (neg_zero, str) == 0)
memmove (str, str + 1, strlen (str) - 1);
}