mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
added linux support to UTIL_Relatize()
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40382
This commit is contained in:
parent
66a8a085fb
commit
5a343e7f29
@ -372,11 +372,10 @@ bool UTIL_Relatize(char buffer[],
|
||||
}
|
||||
|
||||
/* Now build the new relative path. */
|
||||
char *ptr = buffer;
|
||||
size_t len, total = 0;
|
||||
while (numLevels--)
|
||||
{
|
||||
len = _snprintf(&buffer[total], maxlength - total, "..\\");
|
||||
len = _snprintf(&buffer[total], maxlength - total, ".." PATH_SEP_STR);
|
||||
if (len >= maxlength - total)
|
||||
{
|
||||
/* Not enough space in the buffer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user