]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix warning
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Feb 2008 06:04:12 +0000 (06:04 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Feb 2008 06:04:12 +0000 (06:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8106 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 60c89d2609cbe53c7dd201b5daf9d6e40aec355d..52a7ab1bf2089351a762b498666bd0a7778e3b7e 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -2632,7 +2632,7 @@ fssearch_t *FS_Search(const char *pattern, int caseinsensitive, int quiet)
                                
                                // prevseparator points past the '/' right before the wildcard and nextseparator at the one following it (or at the end of the string)
                                // copy everything up except nextseperator
-                               strlcpy(subpattern, pattern, min(sizeof(subpattern), nextseparator - pattern + 1));
+                               strlcpy(subpattern, pattern, min(sizeof(subpattern), (size_t) (nextseparator - pattern + 1)));
                                // find the last '/' before the wildcard
                                prevseparator = strrchr( subpattern, '/' ) + 1;
                                if (!prevseparator)