changeset 108237:4f8f06b9b90b

xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
author Jan D. <jan.h.d@swipnet.se>
date Tue, 04 May 2010 18:03:23 +0200
parents 9fd9b1a102cd
children c86b00c650ef
files src/ChangeLog src/xsmfns.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue May 04 10:44:47 2010 +0200
+++ b/src/ChangeLog	Tue May 04 18:03:23 2010 +0200
@@ -1,3 +1,7 @@
+2010-05-04  Bernhard Herzog <bh@intevation.de> (tiny change)
+
+	* xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
+
 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	Remove BSD_PGRPS.
--- a/src/xsmfns.c	Tue May 04 10:44:47 2010 +0200
+++ b/src/xsmfns.c	Tue May 04 18:03:23 2010 +0200
@@ -255,7 +255,7 @@
   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);