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
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user