]> code.citadel.org Git - citadel.git/blobdiff - citadel/messages.c
- fixes for building without OpenSSL
[citadel.git] / citadel / messages.c
index 8f64a1e9f0aa3bd3a001f7999ff7fb2a5430c95a..39c286d8661c3aee0bde5572c19ff226d4c686b4 100644 (file)
@@ -775,10 +775,13 @@ ME1:      switch (mode) {
                editor_pid = fork();
                cksum = file_checksum(filename);
                if (editor_pid == 0) {
+                       char tmp[SIZ];
+
                        chmod(filename, 0600);
                        screen_reset();
                        sttybbs(SB_RESTORE);
-                       setenv("WINDOW_TITLE", header, 1);
+                       snprintf(tmp, sizeof tmp, "WINDOW_TITLE=%s", header);
+                       putenv(tmp);
                        execlp(editor_path, editor_path, filename, NULL);
                        exit(1);
                }