Fix VC build error on recent getrelative() changes
This commit is contained in:
parent
8d8a3e3574
commit
0fdb4d4768
@ -10,13 +10,17 @@
|
||||
|
||||
static void normalize(char* buffer, const char* path)
|
||||
{
|
||||
char* src;
|
||||
char* dst;
|
||||
char last;
|
||||
|
||||
strcpy(buffer, path);
|
||||
do_translate(buffer, '/');
|
||||
|
||||
/* remove any duplicate slashes within the path */
|
||||
char* src = buffer;
|
||||
char* dst = buffer;
|
||||
char last = '\0';
|
||||
src = buffer;
|
||||
dst = buffer;
|
||||
last = '\0';
|
||||
|
||||
while (*src != '\0') {
|
||||
/* if I don't have consecutive slashes, keep the char */
|
||||
|
Loading…
Reference in New Issue
Block a user