X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpython.c;h=5669f45a1806dce01871f6813e3d8e9cb1850818;hb=27ca3ca92a757b5c9bb3baa5a29ef352ec70b1c9;hp=2f08bd348bf0ffe2936cb132ce0129c6a6bcbe35;hpb=7e2f3e27e92640b1728a5d434b706e5c6a6ec704;p=collectd.git diff --git a/src/python.c b/src/python.c index 2f08bd34..5669f45a 100644 --- a/src/python.c +++ b/src/python.c @@ -31,7 +31,7 @@ #include "collectd.h" -#include "common.h" +#include "utils/common/common.h" #include "cpython.h" @@ -285,7 +285,7 @@ static void cpy_build_name(char *buf, size_t size, PyObject *callback, PyObject *mod = NULL; if (name != NULL) { - snprintf(buf, size, "python.%s", name); + ssnprintf(buf, size, "python.%s", name); return; } @@ -294,14 +294,14 @@ static void cpy_build_name(char *buf, size_t size, PyObject *callback, module = cpy_unicode_or_bytes_to_string(&mod); if (module != NULL) { - snprintf(buf, size, "python.%s", module); + ssnprintf(buf, size, "python.%s", module); Py_XDECREF(mod); PyErr_Clear(); return; } Py_XDECREF(mod); - snprintf(buf, size, "python.%p", callback); + ssnprintf(buf, size, "python.%p", callback); PyErr_Clear(); }