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",
|
"%s: anonymous/%s",
|
||||||
remotehost,
|
remotehost,
|
||||||
passwd);
|
passwd);
|
||||||
setproctitle(proctitle);
|
setproctitle("%s", proctitle);
|
||||||
#endif /* HAVE_SETPROCTITLE */
|
#endif /* HAVE_SETPROCTITLE */
|
||||||
if (logging) {
|
if (logging) {
|
||||||
char data_addr[256];
|
char data_addr[256];
|
||||||
@@ -794,7 +794,7 @@ int do_login(int code, char *passwd)
|
|||||||
reply(code, "User %s logged in.", pw->pw_name);
|
reply(code, "User %s logged in.", pw->pw_name);
|
||||||
#ifdef HAVE_SETPROCTITLE
|
#ifdef HAVE_SETPROCTITLE
|
||||||
snprintf(proctitle, sizeof(proctitle), "%s: %s", remotehost, pw->pw_name);
|
snprintf(proctitle, sizeof(proctitle), "%s: %s", remotehost, pw->pw_name);
|
||||||
setproctitle(proctitle);
|
setproctitle("%s", proctitle);
|
||||||
#endif /* HAVE_SETPROCTITLE */
|
#endif /* HAVE_SETPROCTITLE */
|
||||||
if (logging) {
|
if (logging) {
|
||||||
char data_addr[256];
|
char data_addr[256];
|
||||||
@@ -1817,7 +1817,7 @@ dolog(struct sockaddr *sa, int len)
|
|||||||
NULL, 0, 0);
|
NULL, 0, 0);
|
||||||
#ifdef HAVE_SETPROCTITLE
|
#ifdef HAVE_SETPROCTITLE
|
||||||
snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost);
|
snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost);
|
||||||
setproctitle(proctitle);
|
setproctitle("%s", proctitle);
|
||||||
#endif /* HAVE_SETPROCTITLE */
|
#endif /* HAVE_SETPROCTITLE */
|
||||||
|
|
||||||
if (logging) {
|
if (logging) {
|
||||||
|
Reference in New Issue
Block a user