* Fix MinGW build (it doesn't have _putenv_s)

This commit is contained in:
Tim Angus 2009-10-13 15:58:23 +00:00
parent 290f51e353
commit 639fdb4ed3

View file

@ -2364,7 +2364,7 @@ void Com_Setenv_f(void)
#ifdef _WIN32 #ifdef _WIN32
// windows already removes env variable if value is an empty string // windows already removes env variable if value is an empty string
_putenv_s(arg1, arg2); _putenv(va("%s=%s", arg1, arg2));
#else #else
if(!*arg2) if(!*arg2)
unsetenv(arg1); unsetenv(arg1);