Fix for key return size.
authorBrian Aker <brian@tangent.org>
Fri, 1 Apr 2011 16:33:42 +0000 (09:33 -0700)
committerBrian Aker <brian@tangent.org>
Fri, 1 Apr 2011 16:33:42 +0000 (09:33 -0700)
libmemcached/memcached.hpp

index a83902622495994ed6beab230309023cd9678a2f..f9d5756cbac67150bc5335f5788c378e25f3df67 100644 (file)
@@ -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)