In libexec/pppoed/pppoed.c, use the correct printf length modifier for a

size_t.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-16 16:07:39 +00:00
parent 4df50ce813
commit 789732b939
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228586

View File

@ -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);