X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpyconfig.c;h=b5c01aaf1d5481256bf872e6d078c6e4b74dc15c;hb=c6da31fb30c2fb1d131f92efcde0b3ec9a010b2c;hp=258d31fb75bff8b0209c162c15ebf83deb34c569;hpb=2fe76bf09327b107359072cd5002d3661adf2670;p=collectd.git diff --git a/src/pyconfig.c b/src/pyconfig.c index 258d31fb..b5c01aaf 100644 --- a/src/pyconfig.c +++ b/src/pyconfig.c @@ -136,10 +136,10 @@ static PyObject *Config_repr(PyObject *s) { ret = PyObject_Str(self->key); CPY_SUBSTITUTE(PyObject_Repr, ret, ret); if (self->parent == NULL || self->parent == Py_None) - CPY_SUBSTITUTE(CPY_STRCAT, ret, root_prefix, ret); + CPY_STRCAT(&ret, root_prefix); else - CPY_SUBSTITUTE(CPY_STRCAT, ret, node_prefix, ret); - CPY_SUBSTITUTE(CPY_STRCAT, ret, ret, ending); + CPY_STRCAT(&ret, node_prefix); + CPY_STRCAT(&ret, ending); return ret; }