summaryrefslogtreecommitdiff
path: root/controller.c
diff options
context:
space:
mode:
authorKristoffer Sjöberg <ksjoberg@q1.se>2011-12-28 15:14:31 +0100
committerKristoffer Sjöberg <ksjoberg@q1.se>2011-12-28 15:14:31 +0100
commit81fc8c6bdea80ea4abf6ed636f88bf5e93b26420 (patch)
treeb143ca0889272e59a4de08e4b8daf9e79af2942e /controller.c
parent8b4bbd2a0bcfdc2e186b345de087f23b9c904080 (diff)
downloadlibsigrokdecode-81fc8c6bdea80ea4abf6ed636f88bf5e93b26420.tar.gz
libsigrokdecode-81fc8c6bdea80ea4abf6ed636f88bf5e93b26420.zip
Fix utf8 encoding error by changing the Python parameter to a bytes() object (python3 regression).
Diffstat (limited to 'controller.c')
-rw-r--r--controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.c b/controller.c
index 982bceb..db85c23 100644
--- a/controller.c
+++ b/controller.c
@@ -386,7 +386,7 @@ int srd_run_decoder(uint64_t timeoffset, uint64_t duration,
Py_XINCREF(py_instance);
if (!(py_res = PyObject_CallMethod(py_instance, "decode",
- "KKs#", timeoffset, duration, inbuf, inbuflen))) {
+ "KKy#", timeoffset, duration, inbuf, inbuflen))) {
if (PyErr_Occurred())
PyErr_Print(); /* Returns void. */