X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=9ddbb56bde703c52e54c2a378b852c98775d785e;hb=eba8015059c1ad2d20e55be9ed69c22aec1871be;hp=5de7cb001e4a7b276ccc19c8f0e96bd05539e470;hpb=63152e67145eb22371a45a4ae6d3ba35bd221847;p=open-adventure.git diff --git a/actions.c b/actions.c index 5de7cb0..9ddbb56 100644 --- a/actions.c +++ b/actions.c @@ -171,7 +171,7 @@ static int bigwords(token_t foo) * Look up foo in special section of vocab to determine which word we've got. * Last word zips the eggs back to the giant room (unless already there). */ { - char word[6]; + char word[TOKLEN+1]; packed_to_token(foo, word); int k = (int) get_special_vocab_id(word); int spk = NOTHING_HAPPENS; @@ -1043,7 +1043,7 @@ static int say(struct command_t *command) b = command->wd2x; command->wd1 = command->wd2; } - char word1[6]; + char word1[TOKLEN+1]; packed_to_token(command->wd1, word1); int wd = (int) get_vocab_id(word1); /* FIXME: magic numbers */