summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhin <hin@openbsd.org>2000-07-09 15:20:02 +0000
committerhin <hin@openbsd.org>2000-07-09 15:20:02 +0000
commit5571d8c4de0a32217ed8b8ec609df67f1cc5f6bc (patch)
treec0a3db32a365555b1028756589bae85f22bfbe13
parentExplains how package information is generated. (diff)
downloadwireguard-openbsd-5571d8c4de0a32217ed8b8ec609df67f1cc5f6bc.tar.xz
wireguard-openbsd-5571d8c4de0a32217ed8b8ec609df67f1cc5f6bc.zip
use "%s" in setproctitle. (from theo)
-rw-r--r--kerberosIV/src/appl/ftp/ftpd/ftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kerberosIV/src/appl/ftp/ftpd/ftpd.c b/kerberosIV/src/appl/ftp/ftpd/ftpd.c
index f214b179085..a7627e3dc91 100644
--- a/kerberosIV/src/appl/ftp/ftpd/ftpd.c
+++ b/kerberosIV/src/appl/ftp/ftpd/ftpd.c
@@ -786,7 +786,7 @@ int do_login(int code, char *passwd)
"%s: anonymous/%s",
remotehost,
passwd);
- setproctitle(proctitle);
+ setproctitle("%s", proctitle);
#endif /* HAVE_SETPROCTITLE */
if (logging) {
char data_addr[256];
@@ -807,7 +807,7 @@ int do_login(int code, char *passwd)
reply(code, "User %s logged in.", pw->pw_name);
#ifdef HAVE_SETPROCTITLE
snprintf(proctitle, sizeof(proctitle), "%s: %s", remotehost, pw->pw_name);
- setproctitle(proctitle);
+ setproctitle("%s", proctitle);
#endif /* HAVE_SETPROCTITLE */
if (logging) {
char data_addr[256];
@@ -1782,7 +1782,7 @@ dolog(struct sockaddr *sa)
inaddr2str (sin->sin_addr, remotehost, sizeof(remotehost));
#ifdef HAVE_SETPROCTITLE
snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost);
- setproctitle(proctitle);
+ setproctitle("%s", proctitle);
#endif /* HAVE_SETPROCTITLE */
if (logging) {