diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-05 11:38:08 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-05 11:38:08 +0000 |
commit | 0cb610465b412f7a3a6ec1a5eb02722f934e66bf (patch) | |
tree | 14785cb0dc5b6d3f04bc17e295cb171407bfab01 /test/tokeniser3.c | |
parent | de186485a557d246567e667f4e9fd3f7f167ce7c (diff) | |
download | libhubbub-0cb610465b412f7a3a6ec1a5eb02722f934e66bf.tar.gz libhubbub-0cb610465b412f7a3a6ec1a5eb02722f934e66bf.tar.bz2 |
Fix acquisition of input length on 64bit platforms
svn path=/trunk/hubbub/; revision=4915
Diffstat (limited to 'test/tokeniser3.c')
-rw-r--r-- | test/tokeniser3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tokeniser3.c b/test/tokeniser3.c index 05f57b4..e67b047 100644 --- a/test/tokeniser3.c +++ b/test/tokeniser3.c @@ -84,9 +84,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; |