add missing args to Cmd_QuoteString in other files
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Feb 2011 20:00:18 +0000 (20:00 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Feb 2011 20:00:18 +0000 (20:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10851 d7cf8633-e32d-0410-b094-e92efae38249

cvar.c
keys.c

diff --git a/cvar.c b/cvar.c
index b254593..8d5af14 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -758,8 +758,8 @@ void Cvar_WriteVariables (qfile_t *f)
        for (var = cvar_vars ; var ; var = var->next)
                if ((var->flags & CVAR_SAVE) && (strcmp(var->string, var->defstring) || !(var->flags & CVAR_DEFAULTSET)))
                {
-                       Cmd_QuoteString(buf1, sizeof(buf1), var->name, "\"\\$");
-                       Cmd_QuoteString(buf2, sizeof(buf2), var->string, "\"\\$");
+                       Cmd_QuoteString(buf1, sizeof(buf1), var->name, "\"\\$", false);
+                       Cmd_QuoteString(buf2, sizeof(buf2), var->string, "\"\\$", false);
                        FS_Printf(f, "%s\"%s\" \"%s\"\n", var->flags & CVAR_ALLOCATED ? "seta " : "", buf1, buf2);
                }
 }
diff --git a/keys.c b/keys.c
index 8766332..cbc05ed 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -1472,7 +1472,7 @@ Key_PrintBindList(int j)
                p = keybindings[j][i];
                if (p)
                {
-                       Cmd_QuoteString(bindbuf, sizeof(bindbuf), p, "\"\\");
+                       Cmd_QuoteString(bindbuf, sizeof(bindbuf), p, "\"\\", false);
                        if (j == 0)
                                Con_Printf("^2%s ^7= \"%s\"\n", Key_KeynumToString (i), bindbuf);
                        else
@@ -1565,7 +1565,7 @@ Key_WriteBindings (qfile_t *f)
                        p = keybindings[j][i];
                        if (p)
                        {
-                               Cmd_QuoteString(bindbuf, sizeof(bindbuf), p, "\"\\"); // don't need to escape $ because cvars are not expanded inside bind
+                               Cmd_QuoteString(bindbuf, sizeof(bindbuf), p, "\"\\", false); // don't need to escape $ because cvars are not expanded inside bind
                                if (j == 0)
                                        FS_Printf(f, "bind %s \"%s\"\n", Key_KeynumToString (i), bindbuf);
                                else