diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-11-20 15:05:28 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-11-21 14:22:23 +0800 |
commit | a687fd9aeb36d8397a90dd87b3e8cf4154a25203 (patch) | |
tree | 9985536f9794af2c06df1297b1289a34f5756539 /gtk/gskpango.c | |
parent | 8059975f746ab01242e734425efdf7144d1af213 (diff) | |
download | gtk+-a687fd9aeb36d8397a90dd87b3e8cf4154a25203.tar.gz |
gtk/gskpango.c: Use g_snprintf()
This fixes the build of GTK+ master on Visual Studio 2013 (and possibly
others) as snprintf() may not be supported even if the required C99
features are supported by the compiler.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Diffstat (limited to 'gtk/gskpango.c')
-rw-r--r-- | gtk/gskpango.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gskpango.c b/gtk/gskpango.c index ff91d08f1c..2021e92ae8 100644 --- a/gtk/gskpango.c +++ b/gtk/gskpango.c @@ -126,7 +126,7 @@ gsk_pango_renderer_show_text_glyphs (PangoRenderer *renderer, if (crenderer->snapshot->record_names) { char name[64]; - snprintf (name, sizeof (name), "Glyphs<%d>", glyphs->num_glyphs); + g_snprintf (name, sizeof (name), "Glyphs<%d>", glyphs->num_glyphs); gsk_render_node_set_name (node, name); } |