git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8106
d7cf8633-e32d-0410-b094-
e92efae38249
// 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)