From f2c9c35ce21f894bd2c0201f5c9cac30d859dac6 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 20 Feb 2006 19:07:48 +0100 Subject: setenv() -> putenv() for POSIX compatibility (noticed by Jeff Orczykowski) --- src/GsWidget.cxx | 4 ++-- 1 file 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"; -- cgit v1.2.3