mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Use g_snprintf instead of snprintf.
snprintf is not compatible with msvc.
This commit is contained in:
parent
da2e612fa8
commit
b0f793c8e7
@ -1934,7 +1934,8 @@ gtk_scale_real_get_layout_offsets (GtkScale *scale,
|
||||
}
|
||||
|
||||
static gchar *
|
||||
weed_out_neg_zero (gchar *str, gint digits)
|
||||
weed_out_neg_zero (gchar *str,
|
||||
gint digits)
|
||||
{
|
||||
if (str[0] == '-')
|
||||
{
|
||||
|
@ -1116,7 +1116,8 @@ measure_string_width (PangoLayout *layout,
|
||||
}
|
||||
|
||||
static gchar *
|
||||
weed_out_neg_zero (gchar *str, gint digits)
|
||||
weed_out_neg_zero (gchar *str,
|
||||
gint digits)
|
||||
{
|
||||
if (str[0] == '-')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user