We should use %z to match (SyString *) length and to not display trash.
已通過所有檢查
The build was successful.

This commit is contained in:
Rafal Kupiec 2018-08-07 19:02:28 +02:00
父節點 c419b8605d
當前提交 370465fe79
簽署人: belliash
GPG 金鑰 ID: 4E829243E0CFE6B4

查看文件

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