From 8f203bb219e08ec2e685d190ea21d5a7c7cecf44 Mon Sep 17 00:00:00 2001 From: Flos Lonicerae Date: Wed, 8 May 2024 16:45:39 +0800 Subject: [PATCH] Fix passing the value to EscapeChar. --- runtime/cfsysline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/cfsysline.c b/runtime/cfsysline.c index 34b1cd7a3..06fdb4bb0 100644 --- a/runtime/cfsysline.c +++ b/runtime/cfsysline.c @@ -59,7 +59,7 @@ linkedList_t llCmdList; /* this is NOT a pointer - no typo here ;) */ * HINT: check if char is ' and, if so, use 'c' where c may also be things * like \t etc. */ -static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uid_t), void *pVal) +static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uchar*), void *pVal) { DEFiRet; @@ -78,7 +78,7 @@ static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uid_t), void * *((uchar*)pVal) = **pp; } else { /* we set value via a set function */ - CHKiRet(pSetHdlr(pVal, **pp)); + CHKiRet(pSetHdlr(pVal, *pp)); } ++(*pp); /* eat processed char */ } -- 2.33.0