1
0
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:
Bryan Roe
2021-01-07 22:09:56 -08:00
parent e0ec2a405d
commit 5921235a93

View File

@@ -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);
}