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 New Issue
Block a user