* If memcached_server_list_append is passed NULLs instead of pointers it
returns NULL.
* Added memcached_fetch_execute() method
+ * Found a bug where memcached_fetch() was not null terminating the result
+ value.
0.12 Tue Dec 11 15:20:55 PST 2007
* Updates for consistent hashing
#release versioning
MEMCACHED_MAJOR_VERSION=0
-MEMCACHED_MINOR_VERSION=12
+MEMCACHED_MINOR_VERSION=13
MEMCACHED_MICRO_VERSION=0
#API version
WATCHPOINT_ASSERT(string->is_allocated != MEMCACHED_USED);
- c_ptr= (char *)malloc(memcached_string_length(string) * sizeof(char));
+ c_ptr= (char *)malloc((memcached_string_length(string)+1) * sizeof(char));
if (!c_ptr)
return NULL;
memcpy(c_ptr, memcached_string_value(string), memcached_string_length(string));
+ c_ptr[memcached_string_length(string)]= 0;
return c_ptr;
}