diff --git a/src/client/cl_main.c b/src/client/cl_main.c index 588f14c7..1933b93e 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -832,7 +832,7 @@ void CL_PingServers_f (void) for (i=0 ; i<16 ; i++) { Com_sprintf (name, sizeof(name), "adr%i", i); - adrstring = Cvar_VariableString (name); + adrstring = (char *) Cvar_VariableString (name); if (!adrstring || !adrstring[0]) continue; diff --git a/src/common/cmd.c b/src/common/cmd.c index bcef3230..6f6d0f46 100644 --- a/src/common/cmd.c +++ b/src/common/cmd.c @@ -574,7 +574,7 @@ char *Cmd_MacroExpandString (char *text) if (!start) continue; - token = Cvar_VariableString (token); + token = (char *)Cvar_VariableString (token); j = strlen(token); len += j;