]> code.citadel.org Git - citadel.git/blobdiff - citadel/rooms.c
- fixes for building without OpenSSL
[citadel.git] / citadel / rooms.c
index 66395de4cdc93853c1103ad1521acce2d1c1a1f2..21aa5e41a91aff98ea2b5220cdeacb8ef457969d 100644 (file)
@@ -1057,7 +1057,10 @@ void do_edit(char *desc, char *read_cmd, char *check_cmd, char *write_cmd)
        cksum = file_checksum(temp);
 
        if (strlen(editor_path) > 0) {
-               setenv("WINDOW_TITLE", desc, 1);
+               char tmp[SIZ];
+
+               snprintf(tmp, sizeof tmp, "WINDOW_TITLE=%s", desc);
+               putenv(tmp);
                editor_pid = fork();
                if (editor_pid == 0) {
                        chmod(temp, 0600);