aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/beam.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/beam.c b/src/beam.c
index cff503d..cb9d6dd 100644
--- a/src/beam.c
+++ b/src/beam.c
@@ -392,10 +392,8 @@ void message_edit(char *text, int msglen, char view, char builtin)
switch(childpid = fork()) { /* let's get schizophrenic */
case 0:
sprintf(command_str, "%s %s", editor, s->file);
- sprintf(buf, "TITLE=%s", s->descr);
- putenv(buf);
- /* setenv("TITLE", s->descr, 1);*/
- execvp((char *)args[0], (char **)args);
+ setenv("TITLE", s->descr, 1);
+ execvp(args[0], args);
syserr("execve");
break;
case -1: