- Timestamp:
- 2014-02-13T08:48:37Z (11 years ago)
- Branches:
- master
- Children:
- 6ae1056
- Parents:
- e76cf26
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
re76cf26 r7a80925 164 164 165 165 if (req->body_size > 0) { 166 root = json_parse(req->reply_body );166 root = json_parse(req->reply_body, req->body_size); 167 167 err = json_o_get(root, "errors"); 168 168 if (err && err->type == json_array && (err = err->u.array.values[0]) && … … 220 220 } 221 221 222 if ((ret = json_parse(req->reply_body )) == NULL) {222 if ((ret = json_parse(req->reply_body, req->body_size)) == NULL) { 223 223 imcb_error(ic, "Could not retrieve %s: %s", 224 224 path, "XML parse error"); … … 263 263 264 264 txl->list = g_slist_prepend(txl->list, 265 g_strdup_printf("% lld", c->u.array.values[i]->u.integer));265 g_strdup_printf("%" PRIu64, c->u.array.values[i]->u.integer)); 266 266 } 267 267 … … 773 773 req->reply_body[len] = '\0'; 774 774 775 if ((parsed = json_parse(req->reply_body ))) {775 if ((parsed = json_parse(req->reply_body, req->body_size))) { 776 776 twitter_stream_handle_object(ic, parsed); 777 777 }
Note: See TracChangeset
for help on using the changeset viewer.