len is a size_t, not ssize_t

This commit is contained in:
Joris Vink 2018-07-18 16:09:05 +02:00
parent 25c8dfbdaa
commit 086e2e3d5e
1 changed files with 1 additions and 1 deletions

View File

@ -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;