referencing value fix
This commit is contained in:
parent
5af8c9ae24
commit
385bae9c74
2
main.c
2
main.c
|
@ -703,7 +703,7 @@ not_yet:
|
||||||
}
|
}
|
||||||
|
|
||||||
char *endptr = NULL;
|
char *endptr = NULL;
|
||||||
vote = strtol(input[6], &endptr, 10);
|
vote = strtol(&input[6], &endptr, 10);
|
||||||
if (!endptr || endptr[0] != '\0') {
|
if (!endptr || endptr[0] != '\0') {
|
||||||
snprintf(buf, sizeof(buf), "Invalid kick, not an integer\n");
|
snprintf(buf, sizeof(buf), "Invalid kick, not an integer\n");
|
||||||
write(players[pid].fd, buf, strlen(buf));
|
write(players[pid].fd, buf, strlen(buf));
|
||||||
|
|
Loading…
Reference in New Issue