diff options
author | powwow@askgustav.com <powwow@askgustav.com> | 2020-05-23 09:29:10 (GMT) |
---|---|---|
committer | powwow@askgustav.com <powwow@askgustav.com> | 2020-05-23 09:29:10 (GMT) |
commit | 59bf87e72c874ea62d0f3c9ed94562ff12ec8570 (patch) | |
tree | e2ef505365ce5b33f1d043437ceee2c8c6bd4b16 /src | |
parent | bc83cb4fee46ae06749225e3b05df314a3e0a4a4 (diff) | |
download | powwow-59bf87e72c874ea62d0f3c9ed94562ff12ec8570.zip powwow-59bf87e72c874ea62d0f3c9ed94562ff12ec8570.tar.gz powwow-59bf87e72c874ea62d0f3c9ed94562ff12ec8570.tar.bz2 |
stop using putenv() as it's an XSI extension
Diffstat (limited to 'src')
-rw-r--r-- | src/beam.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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: |