diff options
Diffstat (limited to 'src')
-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"; |