diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-20 19:07:48 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-20 19:07:48 +0100 |
commit | f2c9c35ce21f894bd2c0201f5c9cac30d859dac6 (patch) | |
tree | 126f953d21bedca382cac198f4dcef4191450d54 | |
parent | 20c94cafe1a90d91ceba2e40926676a8cde87fb0 (diff) |
setenv() -> putenv() for POSIX compatibility (noticed by Jeff Orczykowski)
-rw-r--r-- | src/GsWidget.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx index d92b8ba..5741be6 100644 --- a/src/GsWidget.cxx +++ b/src/GsWidget.cxx @@ -298,10 +298,10 @@ void GsWidget::exec_gs() { dup2(d_null, STDOUT_FILENO); - snprintf(gvenv, sizeof(gvenv), "%d %d", + snprintf(gvenv, sizeof(gvenv), "GHOSTVIEW=%d %d", (int) fl_xid(window()), (int) offscreen); - setenv("GHOSTVIEW", gvenv, 1); + putenv(gvenv); argv[0] = "gs"; argv[1] = "-dSAFER"; argv[2] = "-dQUIET"; |