Skip to content
Snippets Groups Projects
Commit cd5e7bb3 authored by Kirill's avatar Kirill
Browse files

Valgrind check

parent b2a75ebd
Branches
No related merge requests found
No preview for this file type
......@@ -63,7 +63,8 @@ int main (int argc, char *argv [])
printf("%s %s\n", host, service);
/* wait for incoming message */
char buffer[SIZE];
char buffer[SIZE+1]={0};
memset(buffer, 0, sizeof(buffer));
CHECK(recv(client_sock, buffer, SIZE, 0));
/* close sockets */
......
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