From b3a0a7cd534c1537edf0b62f1ce36fb2b2779ce6 Mon Sep 17 00:00:00 2001 From: Mike Heffner Date: Mon, 10 Sep 2001 18:46:07 +0000 Subject: [PATCH] Remove a field width specifier that's not doing anything more than what using snprintf() achieves. It was also being used incorrectly. --- libexec/ftpd/ftpd.c | 9 +++------ 1 file 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 @@ 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)