diff options
author | Matthias Clasen <maclas@gmx.de> | 2002-12-15 01:49:01 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-12-15 01:49:01 +0000 |
commit | 8ba71578f2898d10641053cc089860b2b8d07266 (patch) | |
tree | 451f9816b2ae6e0a5427b96abac52466a135f633 /gtk/gtkfontsel.c | |
parent | d745218d7286bc633870417ca36b33de1f715d70 (diff) | |
download | gtk+-8ba71578f2898d10641053cc089860b2b8d07266.tar.gz |
Use g_printf instead of system printf. (#99327)
2002-12-15 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c:
* gtk/gtkfilesel.c:
* gtk/gtkfontsel.c:
* gtk/gtkhruler.c:
* gtk/gtkinputdialog.c:
* gtk/gtkprogress.c:
* gtk/gtktreemodel.c:
* gtk/gtkvruler.c:
* gtk/queryimmodules.c:
* gtk/theme-bits/decompose-bits.c:
* gdk-pixbuf/gdk-pixbuf-csource.c:
* gdk-pixbuf/make-inline-pixbuf.c:
* gdk-pixbuf/queryloaders.c:
* gdk/gdkkeynames.c:
* gdk/gdkrgb.c:
* gdk/linux-fb/gdkfbmanager.c:
* gdk/win32/gdkevents-win32.c:
* gdk/win32/gdkmain-win32.c:
* gdk/win32/gdkproperty-win32.c:
* gdk/x11/gdkmain-x11.c: Use g_printf instead of system
printf. (#99327)
Diffstat (limited to 'gtk/gtkfontsel.c')
-rw-r--r-- | gtk/gtkfontsel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index b7047f85f2..293d0bb03c 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -30,7 +30,7 @@ */ #include <stdlib.h> -#include <stdio.h> +#include <glib/gprintf.h> #include <string.h> #include "gdk/gdk.h" @@ -907,7 +907,7 @@ gtk_font_selection_show_available_sizes (GtkFontSelection *fontsel, /* Set the entry to the new size, rounding to 1 digit, * trimming of trailing 0's and a trailing period */ - sprintf (buffer, "%.1f", fontsel->size / (1.0 * PANGO_SCALE)); + g_snprintf (buffer, sizeof (buffer), "%.1f", fontsel->size / (1.0 * PANGO_SCALE)); if (strchr (buffer, '.')) { p = buffer + strlen (buffer) - 1; |