projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add snprintf wrapper for GCC 8.2/3
[collectd.git]
/
src
/
python.c
diff --git
a/src/python.c
b/src/python.c
index
9d47d70
..
5669f45
100644
(file)
--- a/
src/python.c
+++ b/
src/python.c
@@
-285,7
+285,7
@@
static void cpy_build_name(char *buf, size_t size, PyObject *callback,
PyObject *mod = NULL;
if (name != NULL) {
PyObject *mod = NULL;
if (name != NULL) {
- snprintf(buf, size, "python.%s", name);
+ s
s
nprintf(buf, size, "python.%s", name);
return;
}
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) {
module = cpy_unicode_or_bytes_to_string(&mod);
if (module != NULL) {
- snprintf(buf, size, "python.%s", module);
+ s
s
nprintf(buf, size, "python.%s", module);
Py_XDECREF(mod);
PyErr_Clear();
return;
}
Py_XDECREF(mod);
Py_XDECREF(mod);
PyErr_Clear();
return;
}
Py_XDECREF(mod);
- snprintf(buf, size, "python.%p", callback);
+ s
s
nprintf(buf, size, "python.%p", callback);
PyErr_Clear();
}
PyErr_Clear();
}