summaryrefslogtreecommitdiff
path: root/minecproxy/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'minecproxy/idle.c')
-rw-r--r--minecproxy/idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minecproxy/idle.c b/minecproxy/idle.c
index 90d7210..8fcb934 100644
--- a/minecproxy/idle.c
+++ b/minecproxy/idle.c
@@ -167,7 +167,7 @@ get_player_count(const char *pos, size_t remain)
assert_return(pos && remain > 0, -1);
- online = memmem(pos, remain, ONLINE_NEEDLE, strlen(ONLINE_NEEDLE));
+ online = memmem(pos, remain, ONLINE_NEEDLE, STRLEN(ONLINE_NEEDLE));
if (!online) {
error("could not find online count in JSON");
return -1;