From 487bd0d96c8fb9a53871134ebba7c0a66e286334 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 8 Sep 2019 18:28:52 +0200 Subject: [PATCH] utils: Fix string format message Fix the format string to match the size_t type, this fixes a build problem on 64 bit platforms. Fixes: 4d0c703e750c ("firewall3: Fix some format string problems") Signed-off-by: Hauke Mehrtens --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 5aa7d55..d9b1f7d 100644 --- a/utils.c +++ b/utils.c @@ -145,7 +145,7 @@ fw3_alloc(size_t size) mem = calloc(1, size); if (!mem) - error("Out of memory while allocating %d bytes", size); + error("Out of memory while allocating %zd bytes", size); return mem; } -- 2.25.1