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;