aboutsummaryrefslogtreecommitdiffstats
path: root/facebook/facebook-util.c
diff options
context:
space:
mode:
authorjgeboski <jgeboski@gmail.com>2015-06-22 15:35:13 -0400
committerjgeboski <jgeboski@gmail.com>2015-06-22 15:35:13 -0400
commit75b3f5b0c29782b8a31009ba6ff2972a5ce736e3 (patch)
treeda82a18f26270dcef34f52047ce9c553308849bd /facebook/facebook-util.c
parentbacc420b42c5e844d2d411f8bd4315e3410777eb (diff)
downloadbitlbee-facebook-75b3f5b0c29782b8a31009ba6ff2972a5ce736e3.tar.gz
bitlbee-facebook-75b3f5b0c29782b8a31009ba6ff2972a5ce736e3.tar.bz2
bitlbee-facebook-75b3f5b0c29782b8a31009ba6ff2972a5ce736e3.tar.xz
facebook-api: fixed JSON parse errors with messages
It was assumed there was always a leading "NULL" byte prepended to each message. This is not the case, the NULL byte is actually a variable integer, which is the size for a Thrift string. In order to navigate directly the JSON data, just read the data as a thrift string in order to obtain the offset of the JSON data.
Diffstat (limited to 'facebook/facebook-util.c')
0 files changed, 0 insertions, 0 deletions