added terminating character to why2_read_socket
This commit is contained in:
parent
6fbbee7b68
commit
c6093a8926
@ -215,6 +215,8 @@ char *why2_read_socket(int socket)
|
||||
//READ FINAL MESSAGE
|
||||
if (recv(socket, content_buffer, content_size, 0) != content_size - 2) fprintf(stderr, "Socket probably read wrongly!\n");
|
||||
|
||||
content_buffer[content_size - 2] = '\0'; //TODO: Possible problems
|
||||
|
||||
return content_buffer;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user