Fix bdes not to gripe about empty desig input
This commit is contained in:
parent
e031a8a052
commit
90a4864c17
1 changed files with 2 additions and 1 deletions
|
@ -60,6 +60,7 @@ bdes(void)
|
|||
if ((p = getstarg(player->argp[2], prompt, buf)) == 0)
|
||||
continue;
|
||||
if (!isprint(*p)) {
|
||||
if (*p)
|
||||
pr("Bad character. Must be printable!\n");
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue