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) static void normalize(char* buffer, const char* path)
{ {
char* src;
char* dst;
char last;
strcpy(buffer, path); strcpy(buffer, path);
do_translate(buffer, '/'); do_translate(buffer, '/');
/* remove any duplicate slashes within the path */ /* remove any duplicate slashes within the path */
char* src = buffer; src = buffer;
char* dst = buffer; dst = buffer;
char last = '\0'; last = '\0';
while (*src != '\0') { while (*src != '\0') {
/* if I don't have consecutive slashes, keep the char */ /* if I don't have consecutive slashes, keep the char */