We should use %z to match (SyString *) length and to not display trash.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-08-07 19:02:28 +02:00
parent c419b8605d
commit 370465fe79
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions

View File

@ -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 */