Commit cee414ab authored by Simon Feltman's avatar Simon Feltman

Use g_snprintf instead of snprintf

Use g_snprintf for consistency with the rest of gobjectmodule.c
parent b016ae67
......@@ -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), ".",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment