From: Jan Djärv Date: Tue, 4 May 2010 16:03:23 +0000 (+0200) Subject: xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd). X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~283 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=991be6d4e6eb4cf7aace190d4c68acda609a260f;p=emacs.git xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd). --- 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);