In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
ptrdiff_t. MFC after: 1 week
This commit is contained in:
parent
6d683f9dfa
commit
5893527d84
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228673
@ -1208,7 +1208,7 @@ pw_checkname(u_char *name, int gecos)
|
||||
if (reject) {
|
||||
snprintf(showch, sizeof(showch), (*ch >= ' ' && *ch < 127)
|
||||
? "`%c'" : "0x%02x", *ch);
|
||||
errx(EX_DATAERR, "invalid character %s at position %d in %s",
|
||||
errx(EX_DATAERR, "invalid character %s at position %td in %s",
|
||||
showch, (ch - name), showtype);
|
||||
}
|
||||
if (!gecos && (ch - name) > LOGNAMESIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user