+0.6
+ * get value returns are now null terminated (request by Cal Heldenbrand)
+
0.5 Tue Oct 9 00:22:25 PDT 2007
* Ruby maintainer mentioned TCP_NODELAY patch he had added. Added this to C
library as well. (Eric Hodel drbrain@segment7.net)
value_ptr= value;
read_length= 0;
+ /*
+ We read the \r\n into the string since not doing so is more
+ cycles then the waster of memory to do so.
+
+ We are null terminating through, which will most likely make
+ some people lazy about using the return length.
+ */
to_read= (*value_length) + 2;
read_length= memcached_io_read(ptr, server_key,
goto read_error;
}
+ value[*value_length]= 0;
+ value[(*value_length) + 1]= 0;
+
return value;
}
}