mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-02-19 19:03:31 +00:00
Added missing handler for 'escapeBackSlash'
This commit is contained in:
@@ -1990,6 +1990,14 @@ char* MeshAgent_MakeAbsolutePathEx(char *basePath, char *localPath, int escapeBa
|
||||
}
|
||||
|
||||
//printf("MeshAgent_MakeAbsolutePathEx[%s,%s] = %s\n", basePath, localPath, ILibScratchPad2);
|
||||
|
||||
if (escapeBackSlash != 0)
|
||||
{
|
||||
char *tmp = ILibString_Replace(ILibScratchPad2, strnlen_s(ILibScratchPad2, sizeof(ILibScratchPad2)), "\\", 1, "\\\\", 2);
|
||||
size_t tmplen = strnlen_s(tmp, sizeof(ILibScratchPad2));
|
||||
strcpy_s(ILibScratchPad2, sizeof(ILibScratchPad2), tmp);
|
||||
free(tmp);
|
||||
}
|
||||
return(ILibScratchPad2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user