summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2001-09-10 18:46:07 +0000
committerMike Heffner <mikeh@FreeBSD.org>2001-09-10 18:46:07 +0000
commitb3a0a7cd534c1537edf0b62f1ce36fb2b2779ce6 (patch)
tree33ea93c7ad3346d73aa8bb5787fe0748793a23fc
parent1c93d61fcc77c58fd88a889f9e4b6c4901af3813 (diff)
Notes
-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 e3e074883040..e4aa5ed3aa03 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)