]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - menu.c
changed COM_ParseToken_Simple to have a parsebackslash option, usually
[xonotic/darkplaces.git] / menu.c
diff --git a/menu.c b/menu.c
index 3950381f282ccad2b77ba72b1a0ba8eb47c6e594..aa2d6e346bc97a7198028990352c7350e53f0684 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -897,10 +897,10 @@ static void M_ScanSaves (void)
                buf[sizeof(buf) - 1] = 0;
                t = buf;
                // version
-               COM_ParseToken_Simple(&t, false);
+               COM_ParseToken_Simple(&t, false, false);
                version = atoi(com_token);
                // description
-               COM_ParseToken_Simple(&t, false);
+               COM_ParseToken_Simple(&t, false, false);
                strlcpy (m_filenames[i], com_token, sizeof (m_filenames[i]));
 
        // change _ back to space
@@ -2474,8 +2474,8 @@ static void M_AddBindToCategory(bindcategory_t *c, char *command, char *descript
        *b = Z_Alloc(sizeof(binditem_t) + strlen(command) + 1 + strlen(description) + 1);
        *b->command = (char *)((*b) + 1);
        *b->description = *b->command + strlen(command) + 1;
-       strcpy(*b->command, command);
-       strcpy(*b->description, description);
+       strlcpy(*b->command, command, strlen(command) + 1);
+       strlcpy(*b->description, description, strlen(description) + 1);
 }
 
 static void M_AddBind (char *category, char *command, char *description)