From 4710d935ae330c929d3e9d36f858f58d04601102 Mon Sep 17 00:00:00 2001 From: josh Date: Tue, 26 Oct 2010 20:24:34 +0000 Subject: [PATCH] replaced putenv() with setenv() git-svn-id: svn://anubis/dwscr/trunk@125 5bef9df8-b654-44bb-925b-0ff18baa8f8c --- dwscr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwscr.cc b/dwscr.cc index ae96235..eacbf66 100644 --- a/dwscr.cc +++ b/dwscr.cc @@ -70,11 +70,11 @@ int main(int argc, char * argv[]) /* make the SDL window appear in the top-left corner of the screen */ if (!windowed) - putenv((char *) "SDL_VIDEO_WINDOW_POS=0,0"); + setenv("SDL_VIDEO_WINDOW_POS", "0,0", 1); /* do not disable power management (this will allow monitors * to power off at the normally configured timeout) */ - putenv((char *) "SDL_VIDEO_ALLOW_SCREENSAVER=1"); + setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 1); if (!start) return 0;