From: Brian Aker Date: Fri, 1 Apr 2011 16:33:42 +0000 (-0700) Subject: Fix for key return size. X-Git-Tag: 0.51~15^2~56 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3660438b520db321ad916f585e418575dabb733f;p=m6w6%2Flibmemcached Fix for key return size. --- 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)