From: Frédéric Marchal Date: Tue, 22 May 2012 06:35:43 +0000 (+0200) Subject: Fix a printf-like format specifier X-Git-Tag: v2.3.3-pre1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a104adb9063ae5d81146180939c7aa1d0f14ed10;p=thirdparty%2Fsarg.git Fix a printf-like format specifier Reminder for myself: a sizeof must be cast to a int and formated with %d. --- 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);