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