From 61e40b3e5546f08844922e58dbf06043fefcf89e Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Tue, 13 May 2003 16:56:37 +0000 Subject: [PATCH] Fix check against return value of memset() in vm_acquire_fixed --- BasiliskII/src/Unix/vm_alloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BasiliskII/src/Unix/vm_alloc.cpp b/BasiliskII/src/Unix/vm_alloc.cpp index f3e0b0bb..ba97f238 100644 --- a/BasiliskII/src/Unix/vm_alloc.cpp +++ b/BasiliskII/src/Unix/vm_alloc.cpp @@ -136,7 +136,7 @@ int vm_acquire_fixed(void * addr, size_t size) return -1; // Since I don't know the standard behavior of mmap(), zero-fill here - if (memset(addr, 0, size) != 0) + if (memset(addr, 0, size) != addr) return -1; #else // Unsupported