Fix engine not starting on Windows if linked against SDL > 2.0.5
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index 13d86e0..cab160b 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -976,7 +976,7 @@ static const char *Cmd_GetDirectCvarValue(const char *varname, cmdalias_t *alias
        cvar_t *cvar;
        long argno;
        char *endptr;
-       char vabuf[1024];
+       static char vabuf[1024]; // cmd_mutex
 
        if(is_multiple)
                *is_multiple = false;