summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-03-03 02:38:30 -0800
committerSimon Feltman <sfeltman@src.gnome.org>2014-03-03 02:38:30 -0800
commitcee414ab5725c51d79a2c6aa1e8760e9fd754545 (patch)
tree7c2d8f6a28f4dcfca8ef1869824d2340dde2e82d
parentb016ae6793839b2a6a00a69d00de30937bc611be (diff)
downloadpygobject-cee414ab5725c51d79a2c6aa1e8760e9fd754545.tar.gz
Use g_snprintf instead of snprintf
Use g_snprintf for consistency with the rest of gobjectmodule.c
-rw-r--r--gi/gobjectmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/gobjectmodule.c b/gi/gobjectmodule.c
index 82d52a13..b1561901 100644
--- a/gi/gobjectmodule.c
+++ b/gi/gobjectmodule.c
@@ -934,7 +934,7 @@ get_type_name_for_class(PyTypeObject *class)
while (name_serial < 1000)
{
g_free(type_name);
- snprintf(name_serial_str, 16, "-v%i", name_serial);
+ g_snprintf(name_serial_str, 16, "-v%i", name_serial);
module = PyObject_GetAttrString((PyObject *)class, "__module__");
if (module && PYGLIB_PyUnicode_Check(module)) {
type_name = g_strconcat(PYGLIB_PyUnicode_AsString(module), ".",