ref: 32052d17fde83ad028d80d16c7cce981285d6e8b
parent: 32762cc65dffd9c9e0733c968d609613b7e0e5a5
author: Simon Howard <[email protected]>
date: Fri Feb 23 21:26:02 EST 2007
Fix video_driver setting. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 842
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1114,7 +1114,7 @@
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);
}