Fix posix builds.
This commit is contained in:
parent
9b5d0228be
commit
55583540a8
@ -319,7 +319,7 @@ void UTIL_StripExtension(const char *in, char *out, int outSize)
|
|||||||
|
|
||||||
if (end > 0 && !PATHSEPARATOR(in[end]) && end < outSize)
|
if (end > 0 && !PATHSEPARATOR(in[end]) && end < outSize)
|
||||||
{
|
{
|
||||||
int nChars = min(end, outSize-1);
|
int nChars = MIN(end, outSize-1);
|
||||||
if (out != in)
|
if (out != in)
|
||||||
{
|
{
|
||||||
memcpy(out, in, nChars);
|
memcpy(out, in, nChars);
|
||||||
|
Loading…
Reference in New Issue
Block a user