From 5f114f49e081cce1a14bd4addec26b769219d913 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 20 Feb 2008 06:04:12 +0000 Subject: [PATCH] fix warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8106 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2