(chan): Do not arbitrarily truncate representative to 8 characters,
use the full size of struct natstr member nat_pnam.
This commit is contained in:
parent
47316b593b
commit
68d7cbd273
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ chan(void)
|
|||
if ((p = getstarg(player->argp[2],
|
||||
"New representative name -- ", buf)) == 0)
|
||||
return RET_SYN;
|
||||
p[8] = 0;
|
||||
p[sizeof(us->nat_pnam) - 1] = 0;
|
||||
strcpy(us->nat_pnam, p);
|
||||
putnat(us);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue