From 3ba68154882630427bc601d506ac79b78cabb8dd Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 5 Aug 2026 16:55:08 +0200 Subject: [PATCH] For #314: Update to not replace SWIG_FromCharPtrAndSize. --- contrib/python/ldns.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3