utils: Fix string format message
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Sep 2019 16:28:52 +0000 (18:28 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Sep 2019 16:29:46 +0000 (18:29 +0200)
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 <hauke@hauke-m.de>
utils.c

diff --git a/utils.c b/utils.c
index 5aa7d5531727ec5b6d37e01b07ebd9ebd71712f7..d9b1f7dc2d78e827786fe36c1a928e2aa3a6613c 100644 (file)
--- 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;
 }