Performance improvements in get operations
[m6w6/libmemcached] / lib / memcached_response.c
index 076b0a6fc2bd67a49c3d5d22e50f9405102c0553..7402975f895761ade88c41864174b074e630c433 100644 (file)
@@ -42,7 +42,7 @@ memcached_return memcached_response(memcached_st *ptr,
         buffer_ptr++;
 
       total_length++;
-      WATCHPOINT_ASSERT(total_length < buffer_length);
+      WATCHPOINT_ASSERT(total_length <= buffer_length);
 
       if (total_length >= buffer_length)
         return MEMCACHED_PROTOCOL_ERROR;