mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Remove a field width specifier that's not doing anything more than
what using snprintf() achieves. It was also being used incorrectly.
This commit is contained in:
parent
1c93d61fcc
commit
b3a0a7cd53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83308
@ -1397,15 +1397,12 @@ pass(passwd)
|
||||
#ifdef VIRTUAL_HOSTING
|
||||
if (thishost != firsthost)
|
||||
snprintf(proctitle, sizeof(proctitle),
|
||||
"%s: anonymous(%s)/%.*s", remotehost, hostname,
|
||||
(int)(sizeof(proctitle) - sizeof(remotehost) -
|
||||
sizeof(": anonymous/")), passwd);
|
||||
"%s: anonymous(%s)/%s", remotehost, hostname,
|
||||
passwd);
|
||||
else
|
||||
#endif
|
||||
snprintf(proctitle, sizeof(proctitle),
|
||||
"%s: anonymous/%.*s", remotehost,
|
||||
(int)(sizeof(proctitle) - sizeof(remotehost) -
|
||||
sizeof(": anonymous/")), passwd);
|
||||
"%s: anonymous/%s", remotehost, passwd);
|
||||
setproctitle("%s", proctitle);
|
||||
#endif /* SETPROCTITLE */
|
||||
if (logging)
|
||||
|
Loading…
Reference in New Issue
Block a user