summaryrefslogtreecommitdiff
path: root/test/tokeniser2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tokeniser2.c')
-rw-r--r--test/tokeniser2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tokeniser2.c b/test/tokeniser2.c
index 82fc69c..2b9e739 100644
--- a/test/tokeniser2.c
+++ b/test/tokeniser2.c
@@ -86,9 +86,11 @@ int main(int argc, char **argv)
printf("Test: %s\n",
json_object_get_string(val));
} else if (strcmp(key, "input") == 0) {
+ int len;
ctx.input = (const uint8_t *)
json_object_get_string_len(val,
- (int *) &ctx.input_len);
+ &len);
+ ctx.input_len = len;
} else if (strcmp(key, "output") == 0) {
ctx.output = json_object_get_array(val);
ctx.output_index = 0;