From 808da37f935a07560f62024a704da4a833038680 Mon Sep 17 00:00:00 2001 From: mikeh Date: Mon, 10 Sep 2001 18:46:07 +0000 Subject: 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(-) (limited to 'libexec/ftpd') 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) -- cgit v1.1