From 7a80925eabe969ffc1e8e24c2ad31c80c33ab3cd Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 13 Feb 2014 08:48:37 +0000 Subject: Update json-parser code to git rev 11a80f389769d1f66ca7fbe64ad89c82d3ba4ba9. Few BitlBee-specific diffs now. Annoyingly need to link to libm now for the use of the function pow() since the lib now does its own number parsing... --- lib/oauth2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oauth2.c') diff --git a/lib/oauth2.c b/lib/oauth2.c index 7ebe4e50..b66197ba 100644 --- a/lib/oauth2.c +++ b/lib/oauth2.c @@ -153,7 +153,7 @@ static void oauth2_access_token_done( struct http_request *req ) if( content_type && ( strstr( content_type, "application/json" ) || strstr( content_type, "text/javascript" ) ) ) { - json_value *js = json_parse( req->reply_body ); + json_value *js = json_parse( req->reply_body, req->body_size ); if( js && js->type == json_object ) { JSON_O_FOREACH( js, k, v ) -- cgit v1.2.3