From 3660438b520db321ad916f585e418575dabb733f Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Fri, 1 Apr 2011 09:33:42 -0700 Subject: [PATCH] Fix for key return size. --- libmemcached/memcached.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmemcached/memcached.hpp b/libmemcached/memcached.hpp index a8390262..f9d5756c 100644 --- a/libmemcached/memcached.hpp +++ b/libmemcached/memcached.hpp @@ -241,7 +241,7 @@ public: { ret_val.reserve(value_length); ret_val.assign(value, value + value_length); - key.assign(ret_key); + key.assign(ret_key, key_length); free(value); } else if (value) -- 2.30.2