if (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE || send_length < 0)
{
- return MEMCACHED_FAILURE;
+ return memcached_set_error(*ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT,
+ memcached_literal_param("snprintf(MEMCACHED_DEFAULT_COMMAND_SIZE)"));
}
rc= memcached_do(instance, buffer, (size_t)send_length, true);
string_ptr= buffer;
string_ptr+= 5; /* Move past ITEM */
- for (end_ptr= string_ptr; isgraph(*end_ptr); end_ptr++);
+ for (end_ptr= string_ptr; isgraph(*end_ptr); end_ptr++) {} ;
key= string_ptr;
key[(size_t)(end_ptr-string_ptr)]= 0;
for (callback_counter= 0; callback_counter < number_of_callbacks; callback_counter++)