From 370465fe7938a071279dd12ca620f798f232b21e Mon Sep 17 00:00:00 2001 From: belliash Date: Tue, 7 Aug 2018 19:02:28 +0200 Subject: [PATCH] We should use %z to match (SyString *) length and to not display trash. --- engine/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/vm.c b/engine/vm.c index fbc4180..be95720 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -619,7 +619,7 @@ static ph7_vm_func *VmOverload( } if(i < 1) { /* No candidates, throw an error */ - VmErrorFormat(&(*pVm), PH7_CTX_ERR, "Invalid number of arguments passed to function/method '%s'", pList->sName); + VmErrorFormat(&(*pVm), PH7_CTX_ERR, "Invalid number of arguments passed to function/method '%z()'", &pList->sName); } if(nArg < 1 || i < 2) { /* Return the only candidate */