diff options
Diffstat (limited to 'code/game/ai_cmd.c')
-rw-r--r-- | code/game/ai_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/game/ai_cmd.c b/code/game/ai_cmd.c index 2924284..db95485 100644 --- a/code/game/ai_cmd.c +++ b/code/game/ai_cmd.c @@ -1308,7 +1308,7 @@ void BotMatch_StartTeamLeaderShip(bot_state_t *bs, bot_match_t *match) { //get the team mate that will be the team leader trap_BotMatchVariable(match, NETNAME, teammate, sizeof(teammate)); strncpy(bs->teamleader, teammate, sizeof(bs->teamleader)); - bs->teamleader[sizeof(bs->teamleader)] = '\0'; + bs->teamleader[sizeof(bs->teamleader)-1] = '\0'; } //chats for someone else else { |