commit 086e2e3d5ebfa8c09d076d9530d903a5047adcc0
parent 25c8dfbdaa856cfe0088eceb490d65eea24f200c
Author: Joris Vink <joris@coders.se>
Date: Wed, 18 Jul 2018 16:09:05 +0200
len is a size_t, not ssize_t
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mem.c b/src/mem.c
@@ -109,7 +109,7 @@ kore_malloc(size_t len)
} else {
mlen = sizeof(size_t) + len + sizeof(struct meminfo);
if ((ptr = calloc(1, mlen)) == NULL)
- fatal("kore_malloc(%zd): %d", len, errno);
+ fatal("kore_malloc(%zu): %d", len, errno);
}
plen = (size_t *)ptr;