From: divverent Date: Wed, 20 Feb 2008 06:04:12 +0000 (+0000) Subject: fix warning X-Git-Tag: xonotic-v0.1.0preview~2412 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5f114f49e081cce1a14bd4addec26b769219d913;p=xonotic%2Fdarkplaces.git fix warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8106 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index 60c89d26..52a7ab1b 100644 --- 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)