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
fe5200b07e
commit
808da37f93
@ -1397,15 +1397,12 @@ skip:
|
|||||||
#ifdef VIRTUAL_HOSTING
|
#ifdef VIRTUAL_HOSTING
|
||||||
if (thishost != firsthost)
|
if (thishost != firsthost)
|
||||||
snprintf(proctitle, sizeof(proctitle),
|
snprintf(proctitle, sizeof(proctitle),
|
||||||
"%s: anonymous(%s)/%.*s", remotehost, hostname,
|
"%s: anonymous(%s)/%s", remotehost, hostname,
|
||||||
(int)(sizeof(proctitle) - sizeof(remotehost) -
|
passwd);
|
||||||
sizeof(": anonymous/")), passwd);
|
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
snprintf(proctitle, sizeof(proctitle),
|
snprintf(proctitle, sizeof(proctitle),
|
||||||
"%s: anonymous/%.*s", remotehost,
|
"%s: anonymous/%s", remotehost, passwd);
|
||||||
(int)(sizeof(proctitle) - sizeof(remotehost) -
|
|
||||||
sizeof(": anonymous/")), passwd);
|
|
||||||
setproctitle("%s", proctitle);
|
setproctitle("%s", proctitle);
|
||||||
#endif /* SETPROCTITLE */
|
#endif /* SETPROCTITLE */
|
||||||
if (logging)
|
if (logging)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user