Commit c8e0ad84 authored by Deon George's avatar Deon George

Consistent use of NULL, read_socket_line() no longer considers a NULL terminated string as good

parent 318624da
......@@ -301,9 +301,9 @@ static BOOL read_socket_line(SOCKET sock, char *buffer, size_t buflen, int (*lpr
if (read_socket(sock, &buffer[i], 1, lprintf)) {
switch(buffer[i]) {
case 0:
return TRUE;
return FALSE;
case '\n':
buffer[i+1] = '\0';
buffer[i+1] = 0;
return TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment