]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
Make the number of frames used for initial settling configurable.
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index 67d13f930eeb5dc23e583dcc4f94fd10b69f2794..e682f6fa482942776d040aa0198388905dec0cc5 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1642,7 +1642,7 @@ FS_CheckGameDir
 const char *FS_CheckGameDir(const char *gamedir)
 {
        const char *ret;
-       char buf[8192];
+       static char buf[8192];
        char vabuf[1024];
 
        if (FS_CheckNastyPath(gamedir, true))
@@ -3350,7 +3350,7 @@ void FS_DefaultExtension (char *path, const char *extension, size_t size_path)
 
        // if path doesn't have a .EXT, append extension
        // (extension should include the .)
-       src = path + strlen(path) - 1;
+       src = path + strlen(path);
 
        while (*src != '/' && src != path)
        {