summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2007-02-24 02:26:02 +0000
committerSimon Howard2007-02-24 02:26:02 +0000
commit32052d17fde83ad028d80d16c7cce981285d6e8b (patch)
tree414be3052b635c5e422867a1903d49cf2c9253bc
parent32762cc65dffd9c9e0733c968d609613b7e0e5a5 (diff)
downloadchocolate-doom-32052d17fde83ad028d80d16c7cce981285d6e8b.tar.gz
chocolate-doom-32052d17fde83ad028d80d16c7cce981285d6e8b.tar.bz2
chocolate-doom-32052d17fde83ad028d80d16c7cce981285d6e8b.zip
Fix video_driver setting.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 842
-rw-r--r--src/i_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_video.c b/src/i_video.c
index 0e66154e..bbf35326 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1114,7 +1114,7 @@ static void SetSDLVideoDriver(void)
char *env_string;
env_string = malloc(strlen(video_driver) + 30);
- sprintf(env_string, "SDL_VIDEODRIVER=%s", env_string);
+ sprintf(env_string, "SDL_VIDEODRIVER=%s", video_driver);
putenv(env_string);
free(env_string);
}