fixed client checkinput
This commit is contained in:
parent
9ecee70798
commit
6f938c041f
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue