From 66612dcd94cd804ecbbf6aeb2dc098e5ba04213b Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 16 Dec 2011 16:07:39 +0000 Subject: In libexec/pppoed/pppoed.c, use the correct printf length modifier for a size_t. MFC after: 1 week --- libexec/pppoed/pppoed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/pppoed') diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c index f07dd8c..a5c0b7a 100644 --- a/libexec/pppoed/pppoed.c +++ b/libexec/pppoed/pppoed.c @@ -570,8 +570,8 @@ main(int argc, char *argv[]) } exec = (char *)alloca(sizeof DEFAULT_EXEC_PREFIX + strlen(label)); if (exec == NULL) { - fprintf(stderr, "%s: Cannot allocate %d bytes\n", prog, - (int)(sizeof DEFAULT_EXEC_PREFIX) + strlen(label)); + fprintf(stderr, "%s: Cannot allocate %zu bytes\n", prog, + sizeof DEFAULT_EXEC_PREFIX + strlen(label)); return EX_OSERR; } strcpy(exec, DEFAULT_EXEC_PREFIX); -- cgit v1.1