X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=actions.c;h=80e534b6da793c2cebbb8e8a274dcbb75d918078;hp=0aa7d9302decd3ed14d01719a5e8441d299b883d;hb=2b22871cce99b5eedbb56552182b570ed164d20a;hpb=51b6b52dc88beeb7873939cadfd61770e69259c3 diff --git a/actions.c b/actions.c index 0aa7d93..80e534b 100644 --- a/actions.c +++ b/actions.c @@ -1114,7 +1114,7 @@ static int say(struct command_t *command) { if (command->wd2 > 0) { command->wd1 = command->wd2; - strcpy(command->raw1, command->raw2); + strncpy(command->raw1, command->raw2, LINESIZE - 1); } char word1[TOKLEN + 1]; packed_to_token(command->wd1, word1);