From e3bf60bda3b3a037de4d8cc0ece91933226ef77a Mon Sep 17 00:00:00 2001 From: Adam Olsen Date: Tue, 18 Sep 2001 07:00:41 +0000 Subject: [PATCH] - fix the parsing of player numbers. oops :) --- qw/source/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qw/source/master.c b/qw/source/master.c index fb9b61ff5..89131cf07 100644 --- a/qw/source/master.c +++ b/qw/source/master.c @@ -73,7 +73,7 @@ QW_AddHeartbeat (server_t **servers_p, int slen, struct sockaddr_in *addr, char int sequence, players; sequence = atoi (buf + 2); - players = atoi (buf + strlen (buf + 2) + 1); + players = atoi (strchr (buf + 2, '\n') + 1); for (i = 0; i < slen; i++) { if (servers[i].addr.sin_addr.s_addr == addr->sin_addr.s_addr