summaryrefslogtreecommitdiff
path: root/jq.pyx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-03-16 15:01:53 +0000
committerMichael Williamson <mike@zwobble.org>2023-03-16 15:01:53 +0000
commit7a09606ae38a18f814b40ec7041f189de2d65b5a (patch)
tree58e42ac3813fb3411f893f679a50ad60f93722c9 /jq.pyx
parent7a2648dfe150f532d1690fa8fbaf588789afaa84 (diff)
Handle null bytes in text input
Diffstat (limited to 'jq.pyx')
-rw-r--r--jq.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/jq.pyx b/jq.pyx
index 293ea76..174cea3 100644
--- a/jq.pyx
+++ b/jq.pyx
@@ -314,7 +314,7 @@ cdef class _ResultIterator(object):
self._ready = False
cdef jv_parser* parser = jv_parser_new(0)
cdef char* cbytes_input = PyBytes_AsString(bytes_input)
- jv_parser_set_buf(parser, cbytes_input, len(cbytes_input), 0)
+ jv_parser_set_buf(parser, cbytes_input, len(bytes_input), 0)
self._parser = parser
def __iter__(self):