From f8d5fc70290d19441ea513a10dbfe8cc074571f7 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Sat, 8 Sep 2018 16:47:22 +0200 Subject: Fix conversion specifiers in "Failed to {malloc,strdup}" messages. --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils.c b/src/utils.c index 445d6b0..b086900 100644 --- a/src/utils.c +++ b/src/utils.c @@ -74,7 +74,7 @@ xmalloc(size_t size) { void *result = malloc(size); if (!result) { - msg(MSG_CRITICAL, "Failed to malloc %zi bytes\n", size); + msg(MSG_CRITICAL, "Failed to malloc %zu bytes\n", size); exit(EXIT_FAILURE); } return result; @@ -86,7 +86,7 @@ xstrdup(const char *s) { char *result = strdup(s); if (!result) { - msg(MSG_CRITICAL, "Failed to strdup %zi bytes\n", strlen(s)); + msg(MSG_CRITICAL, "Failed to strdup %zu bytes\n", strlen(s)); exit(EXIT_FAILURE); } return result; -- cgit v1.2.1