fixed client checkinput

This commit is contained in:
Lorenzo Bianchi 2023-05-18 12:08:07 +02:00
parent 9ecee70798
commit 6f938c041f
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ void checkClientinput(int argc, char *argv[]){
exit(EXIT_FAILURE);
}
if (!argv[1]) { //FIXME: è possibile che succeda?
if (!argv[1] || strlen(argv[1]) > MAX_NAME) {
errExitMsg("Invalid player name");
}
}