Fix VC build error on recent getrelative() changes

This commit is contained in:
Jason Perkins 2013-03-07 10:44:47 -05:00
parent 8d8a3e3574
commit 0fdb4d4768

View File

@ -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 */