From 991be6d4e6eb4cf7aace190d4c68acda609a260f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 4 May 2010 18:03:23 +0200 Subject: [PATCH] xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd). --- src/ChangeLog | 4 ++++ src/xsmfns.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 91da5440dd4..c7e86efb88b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-05-04 Bernhard Herzog (tiny change) + + * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd). + 2010-05-04 Dan Nicolaescu Remove BSD_PGRPS. diff --git a/src/xsmfns.c b/src/xsmfns.c index 48fd1b7e76d..78d7d9f6523 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c @@ -255,7 +255,7 @@ smc_save_yourself_CB (smcConn, cwd = get_current_dir_name (); if (cwd) { - chdir_opt = xmalloc (strlen (CHDIR_OPT) + strlen (client_id) + 1); + chdir_opt = xmalloc (strlen (CHDIR_OPT) + strlen (cwd) + 1); strcpy (chdir_opt, CHDIR_OPT); strcat (chdir_opt, cwd); -- 2.39.2