[pygobject] Use g_snprintf instead of snprintf



commit cee414ab5725c51d79a2c6aa1e8760e9fd754545
Author: Simon Feltman <sfeltman src gnome org>
Date:   Mon Mar 3 02:38:30 2014 -0800

    Use g_snprintf instead of snprintf
    
    Use g_snprintf for consistency with the rest of gobjectmodule.c

 gi/gobjectmodule.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/gobjectmodule.c b/gi/gobjectmodule.c
index 82d52a1..b156190 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), ".",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]