---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 754b269..4f787b7 100644
--- a/main.c
+++ b/main.c
@@ -703,7 +703,7 @@ not_yet:
}
char *endptr = NULL;
- vote = strtol(input[6], &endptr, 10);
+ vote = strtol(&input[6], &endptr, 10);
if (!endptr || endptr[0] != '\0') {
snprintf(buf, sizeof(buf), "Invalid kick, not an integer\n");
write(players[pid].fd, buf, strlen(buf));
--
2.24.3 (Apple Git-128)