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 60c89d2..52a7ab1 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)