mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed compiling error
This commit is contained in:
parent
0edad8e640
commit
1127c7b830
|
@ -1862,7 +1862,7 @@ static void ExtractName(const char *pFileName, char *pName, int BufferSize)
|
|||
pEnd = pFileName;
|
||||
}
|
||||
|
||||
int Length = pEnd > pExtractedName ? min(BufferSize, pEnd-pExtractedName+1) : BufferSize;
|
||||
int Length = pEnd > pExtractedName ? min(BufferSize, (int)(pEnd-pExtractedName+1)) : BufferSize;
|
||||
str_copy(pName, pExtractedName, Length);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue