diff --git a/src/pyconfig.c b/src/pyconfig.c
index 258d31fb75bff8b0209c162c15ebf83deb34c569..b5c01aaf1d5481256bf872e6d078c6e4b74dc15c 100644 (file)
--- a/src/pyconfig.c
+++ b/src/pyconfig.c
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;
}