(chan): Do not arbitrarily truncate representative to 8 characters,

use the full size of struct natstr member nat_pnam.
This commit is contained in:
Markus Armbruster 2005-10-03 10:40:11 +00:00
parent 47316b593b
commit 68d7cbd273

View file

@ -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;