diff options
author | mikeh <mikeh@FreeBSD.org> | 2001-09-10 18:46:07 +0000 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2001-09-10 18:46:07 +0000 |
commit | 808da37f935a07560f62024a704da4a833038680 (patch) | |
tree | 33ea93c7ad3346d73aa8bb5787fe0748793a23fc | |
parent | fe5200b07e51db87385d59cae24b03ebb4c51aa3 (diff) | |
download | FreeBSD-src-808da37f935a07560f62024a704da4a833038680.zip FreeBSD-src-808da37f935a07560f62024a704da4a833038680.tar.gz |
Remove a field width specifier that's not doing anything more than
what using snprintf() achieves. It was also being used incorrectly.
-rw-r--r-- | libexec/ftpd/ftpd.c | 9 |
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) |