xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
This commit is contained in:
parent
c04b03f8d5
commit
991be6d4e6
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue