From 59bf87e72c874ea62d0f3c9ed94562ff12ec8570 Mon Sep 17 00:00:00 2001 From: "powwow@askgustav.com" Date: Sat, 23 May 2020 11:29:10 +0200 Subject: stop using putenv() as it's an XSI extension 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: -- cgit v0.10.2