From 09a33f1b3c7ac2e60f97b04395dc239e08f872a3 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 6 Jul 2000 23:59:56 +0000 Subject: [PATCH] do not call setproctitle with a variable as the format string git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8567 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 0af6864ef..578cb6fac 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -774,7 +774,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]; @@ -794,7 +794,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]; @@ -1817,7 +1817,7 @@ dolog(struct sockaddr *sa, int len) NULL, 0, 0); #ifdef HAVE_SETPROCTITLE snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost); - setproctitle(proctitle); + setproctitle("%s", proctitle); #endif /* HAVE_SETPROCTITLE */ if (logging) {