]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
cleaned up many text buffer sizes throughout the engine, most now use MAX_INPUTLINE...
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index 394a83270ac220db05219120c40ddb17770ca00c..655d91d2fd81927bc2541bfbc8f1e135cbd9c25d 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -252,7 +252,7 @@ Cvar_SetValue
 */
 void Cvar_SetValueQuick(cvar_t *var, float value)
 {
-       char val[256];
+       char val[MAX_INPUTLINE];
 
        if ((float)((int)value) == value)
                sprintf(val, "%i", (int)value);
@@ -263,7 +263,7 @@ void Cvar_SetValueQuick(cvar_t *var, float value)
 
 void Cvar_SetValue(const char *var_name, float value)
 {
-       char val[256];
+       char val[MAX_INPUTLINE];
 
        if ((float)((int)value) == value)
                sprintf(val, "%i", (int)value);