From d34c8ceafb7286c8f95c3cbe332ebaa3cb751ddc Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 6 Apr 2019 16:51:32 +0200 Subject: [PATCH] Fix void dump. --- engine/memobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/memobj.c b/engine/memobj.c index 9b549d9..99aff76 100644 --- a/engine/memobj.c +++ b/engine/memobj.c @@ -1292,7 +1292,7 @@ PH7_PRIVATE sxi32 PH7_MemObjDump( /* Dump class instance attributes */ rc = PH7_ClassInstanceDump(&(*pOut), (ph7_class_instance *)pObj->x.pOther, ShowType, nTab + 1, nDepth + 1); } else if(pObj->iFlags & MEMOBJ_VOID) { - SyBlobAppend(&(*pOut), "NULL", sizeof("NULL")); + SyBlobAppend(&(*pOut), "NULL", sizeof("NULL") - 1); } else { SyBlob *pContents = &pObj->sBlob; /* Get a printable representation of the contents */