mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
* cd_sdl.c (export_cddev_arg): fixed bad snprintf and the crash it was
causing. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@289 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a7dba17c55
commit
8138aa8608
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ static void export_cddev_arg (void)
|
|||
if (i != 0 && i < com_argc - 1 && com_argv[i+1][0] != '\0')
|
||||
{
|
||||
char arg[64];
|
||||
q_snprintf("SDL_CDROM=%s", sizeof(arg), com_argv[i+1]);
|
||||
q_snprintf(arg, sizeof(arg), "SDL_CDROM=%s", com_argv[i+1]);
|
||||
putenv(arg);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue