X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=actions.c;h=80e534b6da793c2cebbb8e8a274dcbb75d918078;hp=0aa7d9302decd3ed14d01719a5e8441d299b883d;hb=53cb12b4d084bc085fd2b22db886cc172b74e59c;hpb=a3ffa2455b1a0ff9ecf9470d5efe8e0bf6cdc315 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);