diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-03-03 02:38:30 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-03-03 02:38:30 -0800 |
commit | cee414ab5725c51d79a2c6aa1e8760e9fd754545 (patch) | |
tree | 7c2d8f6a28f4dcfca8ef1869824d2340dde2e82d | |
parent | b016ae6793839b2a6a00a69d00de30937bc611be (diff) | |
download | pygobject-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.c | 2 |
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), ".", |