kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 5021eeb597f785fbdb71e2c8584b93784f150d2b
parent 78d667abc78c63876cadb9572c9db11951c73ee7
Author: Joris Vink <joris@coders.se>
Date:   Tue, 15 Mar 2022 13:39:01 +0100

use correct format specifier for size_t

Diffstat:
src/mem.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mem.c b/src/mem.c @@ -304,7 +304,7 @@ memsize(void *ptr) ms = (struct memsize *)((u_int8_t *)ptr - sizeof(*ms)); if (ms->magic != KORE_MEM_MAGIC) - fatal("%s: bad memsize magic (0x%x)", __func__, ms->magic); + fatal("%s: bad memsize magic (0x%zx)", __func__, ms->magic); return (ms); } @@ -319,7 +319,7 @@ meminfo(void *ptr) info = (struct meminfo *)((u_int8_t *)ptr + ms->len); if (info->magic != KORE_MEM_MAGIC) - fatal("%s: bad meminfo magic (0x%x)", __func__, info->magic); + fatal("%s: bad meminfo magic (0x%zx)", __func__, info->magic); return (info); }