aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2020-12-01 22:28:02 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-10-08 05:24:28 +0000
commita7c75ee92b0edb8ab591f68fe2038de3b68fc031 (patch)
tree67023e6b3024781e522a6076b673686ef5560e9d
parentb180a5b75cb95c6316f668b811bfffc071e2325f (diff)
downloadsrc-a7c75ee92b0edb8ab591f68fe2038de3b68fc031.tar.gz
src-a7c75ee92b0edb8ab591f68fe2038de3b68fc031.zip
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. (cherry picked from commit dba7640e44c5ec148a84b0d58c6c9a3c9e5147f3)
-rw-r--r--stand/ficl/words.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/ficl/words.c b/stand/ficl/words.c
index 54257275d5cc..3f781c6d2ff4 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