diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2014-02-13 08:48:37 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2014-02-13 08:48:37 +0000 |
commit | 7a80925eabe969ffc1e8e24c2ad31c80c33ab3cd (patch) | |
tree | e070eccc63ed1819f999e9464d3fb6fb7a302cc3 /lib/oauth2.c | |
parent | e76cf264de6caaca24fa308cab78e770fc4a6508 (diff) |
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...
Diffstat (limited to 'lib/oauth2.c')
-rw-r--r-- | lib/oauth2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |