From a104adb9063ae5d81146180939c7aa1d0f14ed10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Tue, 22 May 2012 08:35:43 +0200 Subject: [PATCH] Fix a printf-like format specifier Reminder for myself: a sizeof must be cast to a int and formated with %d. --- ip2name_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip2name_exec.c b/ip2name_exec.c index 306d7d9..f18d226 100644 --- a/ip2name_exec.c +++ b/ip2name_exec.c @@ -58,7 +58,7 @@ static void ip2name_execconfig(const char *name,const char *param) len=strlen(param); if (len>=sizeof(ExecCmd)) { - debuga(_("Command to execute to resolve the IP addresses is too long (maximum is %lu bytes)\n"),sizeof(ExecCmd)); + debuga(_("Command to execute to resolve the IP addresses is too long (maximum is %d bytes)\n"),(int)sizeof(ExecCmd)); exit(EXIT_FAILURE); } strcpy(ExecCmd,param); -- 2.47.2