diff options
| author | Emmanuele Bassi <ebassi@gnome.org> | 2014-04-17 15:28:15 +0100 |
|---|---|---|
| committer | Emmanuele Bassi <ebassi@gnome.org> | 2014-04-17 15:32:06 +0100 |
| commit | e31683d2804916da23d1e48b80b124b37df1c8e6 (patch) | |
| tree | 88555520c95ff842b6e207011278280805fd6c02 /json-glib/tests/parser.c | |
| parent | 289e75bd35c5ee268269f09c9e2db90602994fc1 (diff) | |
| download | json-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
