]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix a printf-like format specifier
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Tue, 22 May 2012 06:35:43 +0000 (08:35 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Tue, 22 May 2012 06:35:43 +0000 (08:35 +0200)
Reminder for myself: a sizeof must be cast to a int and formated with %d.

ip2name_exec.c

index 306d7d92438d41505f8fbcdfc81b360be825a44f..f18d22643b9734e6f4e85f1f87729ad7ff3b1646 100644 (file)
@@ -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);