mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
In libexec/pppoed/pppoed.c, use the correct printf length modifier for a
size_t. MFC after: 1 week
This commit is contained in:
parent
4df50ce813
commit
789732b939
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228586
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue