summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index e3e0748..e4aa5ed 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1397,15 +1397,12 @@ skip:
#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)
OpenPOWER on IntegriCloud