better error messages & buffer alignment

This commit is contained in:
Martins Mozeiko
2017-11-09 22:29:22 -08:00
parent 670724bd8f
commit dcec2ea31e
4 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -201,12 +201,12 @@ void* sys_realloc(void* ptr, size_t size)
}
else
{
fatal("error using sys_realloc function");
fatal("ERROR: internal error, wrong sys_realloc usage\n");
}
if (!result)
{
fatal("out of memory");
fatal("ERROR: out of memory\n");
}
return result;