From: Eric S. Raymond Date: Thu, 20 Jul 2017 13:11:13 +0000 (-0400) Subject: Remove a packing call - word buffer is good enough. X-Git-Tag: 1.3~42 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=29b8f5b142d15f75cf37fc9c2cfd4b549d18d2d4;p=open-adventure.git Remove a packing call - word buffer is good enough. --- diff --git a/actions.c b/actions.c index 209d257..682b03b 100644 --- a/actions.c +++ b/actions.c @@ -1143,13 +1143,11 @@ static int rub(verb_t verb, obj_t obj) } static int say(struct command_t *command) -/* Say. Echo WD2 (or WD1 if no WD2 (SAY WHAT?, etc.).) Magic words override. */ +/* Say. Echo WD2. Magic words override. */ { - char word2[TOKLEN + 1]; - packed_to_token(command->wd2, word2); long wd; enum wordtype type; - get_vocab_metadata(word2, &wd, &type); + get_vocab_metadata(command->raw2, &wd, &type); if (wd == XYZZY || wd == PLUGH || wd == PLOVER ||