summaryrefslogtreecommitdiff
path: root/json-glib/tests/parser.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2014-04-17 15:28:15 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2014-04-17 15:32:06 +0100
commite31683d2804916da23d1e48b80b124b37df1c8e6 (patch)
tree88555520c95ff842b6e207011278280805fd6c02 /json-glib/tests/parser.c
parent289e75bd35c5ee268269f09c9e2db90602994fc1 (diff)
downloadjson-glib-e31683d2804916da23d1e48b80b124b37df1c8e6.tar.gz
parser: Use the right length for parsing the stream contents
The ByteArray we use to buffer the contents of a stream in order to pass them to the parser may have a bigger length. We should use the cursor position that we use to put a '\0' in the buffer instead. We could also use -1, but this saves us a strlen() later on.
Diffstat (limited to 'json-glib/tests/parser.c')
0 files changed, 0 insertions, 0 deletions