Should fix the 'crash' bug related to input > 2 kb, as well as fix the mobile deletion crash bug, also a small memory leak plugged

This commit is contained in:
Vatiken
2012-03-02 08:43:06 +00:00
parent 2aed18ba52
commit 870bb8ef38
5 changed files with 47 additions and 3 deletions

View File

@@ -1906,7 +1906,7 @@ static int process_input(struct descriptor_data *t)
return (-1);
}
bytes_read = perform_socket_read(t->descriptor, read_buf, MAX_PROTOCOL_BUFFER);
bytes_read = perform_socket_read(t->descriptor, read_buf, space_left);
if ( bytes_read >= 0 )
{