summaryrefslogtreecommitdiff
path: root/src/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.c')
-rw-r--r--src/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.c b/src/net.c
index 8c80c2b..ac1b652 100644
--- a/src/net.c
+++ b/src/net.c
@@ -230,7 +230,7 @@ static char* server_recv_hello(int sock)
char buf[12], *name;
uint8_t namelen;
- recv(sock, buf, 13, 0);
+ recv(sock, buf, 12, 0);
assert(buf[0] == msg_type_hello);