Use g_snprintf instead of snprintf.

snprintf is not compatible with msvc.
This commit is contained in:
Ignacio Casal Quinteiro 2016-08-10 12:29:01 +02:00
parent da2e612fa8
commit b0f793c8e7
2 changed files with 4 additions and 2 deletions

View File

@ -1934,7 +1934,8 @@ gtk_scale_real_get_layout_offsets (GtkScale *scale,
} }
static gchar * static gchar *
weed_out_neg_zero (gchar *str, gint digits) weed_out_neg_zero (gchar *str,
gint digits)
{ {
if (str[0] == '-') if (str[0] == '-')
{ {

View File

@ -1116,7 +1116,8 @@ measure_string_width (PangoLayout *layout,
} }
static gchar * static gchar *
weed_out_neg_zero (gchar *str, gint digits) weed_out_neg_zero (gchar *str,
gint digits)
{ {
if (str[0] == '-') if (str[0] == '-')
{ {