X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libmemcachedprotocol%2Fbinary_handler.c;h=d720424a9cc82aac7fc197ef01614809da60654f;hb=f0b6a382ea0be4c327f9968cf5d65ac1dd8bdf4c;hp=851c87510581a20be01fec9738c75a8c75f22a1e;hpb=6b04196d0ea6aa9fcd2a6c14a6cb5733c34aa2d2;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;