From dba7640e44c5ec148a84b0d58c6c9a3c9e5147f3 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 1 Dec 2020 22:28:02 +0000 Subject: [PATCH] ficl: instead of pad, emit can use local variable Pad in forth is used as "scratchpad" and internal implementations should not use it. Ficl does not really follow this rule and this can fire back. emit has no need to use pad, we can use local variable instead. --- stand/ficl/words.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/ficl/words.c b/stand/ficl/words.c index 54257275d5c..3f781c6d2ff 100644 --- a/stand/ficl/words.c +++ b/stand/ficl/words.c @@ -1015,7 +1015,7 @@ static void twoSwap(FICL_VM *pVM) static void emit(FICL_VM *pVM) { - char *cp = pVM->pad; + char cp[2]; int i; #if FICL_ROBUST > 1 -- 2.45.0