From: W.C.A. Wijngaards Date: Wed, 5 Aug 2026 14:55:08 +0000 (+0200) Subject: For #314: Update to not replace SWIG_FromCharPtrAndSize. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fldns.git For #314: Update to not replace SWIG_FromCharPtrAndSize. --- diff --git a/contrib/python/ldns.i b/contrib/python/ldns.i index 64518fda..4653ae44 100644 --- a/contrib/python/ldns.i +++ b/contrib/python/ldns.i @@ -414,7 +414,7 @@ PyObject* ldns_pkt2wire_(const ldns_pkt *pkt) tuple = PyTuple_New(2); PyTuple_SetItem(tuple, 0, SWIG_From_int(result)); if (result == LDNS_STATUS_OK) - PyTuple_SetItem(tuple, 1, PyUnicode_FromStringAndSize((char *)arg1, arg3)); + PyTuple_SetItem(tuple, 1, SWIG_FromCharPtrAndSize((char *)arg1, arg3)); else { Py_INCREF(Py_None); PyTuple_SetItem(tuple, 1, Py_None);