aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpowwow@askgustav.com <powwow@askgustav.com>2020-05-23 09:29:10 (GMT)
committerpowwow@askgustav.com <powwow@askgustav.com>2020-05-23 09:29:10 (GMT)
commit59bf87e72c874ea62d0f3c9ed94562ff12ec8570 (patch)
treee2ef505365ce5b33f1d043437ceee2c8c6bd4b16
parentbc83cb4fee46ae06749225e3b05df314a3e0a4a4 (diff)
downloadpowwow-59bf87e72c874ea62d0f3c9ed94562ff12ec8570.zip
powwow-59bf87e72c874ea62d0f3c9ed94562ff12ec8570.tar.gz
powwow-59bf87e72c874ea62d0f3c9ed94562ff12ec8570.tar.bz2
stop using putenv() as it's an XSI extension
-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: