X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcachedprotocol%2Fbinary_handler.c;h=d720424a9cc82aac7fc197ef01614809da60654f;hb=08f651a522b5550deada129592ccdd510c2003bb;hp=851c87510581a20be01fec9738c75a8c75f22a1e;hpb=6782c821475af5ab6801fe89f9726072a2a31a7f;p=awesomized%2Flibmemcached diff --git a/libmemcachedprotocol/binary_handler.c b/libmemcachedprotocol/binary_handler.c index 851c8751..d720424a 100644 --- a/libmemcachedprotocol/binary_handler.c +++ b/libmemcachedprotocol/binary_handler.c @@ -76,7 +76,7 @@ static protocol_binary_response_status raw_response_handler(const void *cookie, return PROTOCOL_BINARY_RESPONSE_EINTERNAL; } - size_t len= sizeof(protocol_binary_response_header) + memcached_htonl(response->response.bodylen); + size_t len= sizeof(protocol_binary_response_header) + htonl(response->response.bodylen); size_t offset= 0; char *ptr= (void*)response;