diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xsmfns.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 91da5440dd4..c7e86efb88b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change) | ||
| 2 | |||
| 3 | * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd). | ||
| 4 | |||
| 1 | 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | Remove BSD_PGRPS. | 7 | 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, | |||
| 255 | cwd = get_current_dir_name (); | 255 | cwd = get_current_dir_name (); |
| 256 | if (cwd) | 256 | if (cwd) |
| 257 | { | 257 | { |
| 258 | chdir_opt = xmalloc (strlen (CHDIR_OPT) + strlen (client_id) + 1); | 258 | chdir_opt = xmalloc (strlen (CHDIR_OPT) + strlen (cwd) + 1); |
| 259 | strcpy (chdir_opt, CHDIR_OPT); | 259 | strcpy (chdir_opt, CHDIR_OPT); |
| 260 | strcat (chdir_opt, cwd); | 260 | strcat (chdir_opt, cwd); |
| 261 | 261 | ||