wrowe 01/10/10 10:36:12
Modified: file_io/win32 open.c
Log:
Cleanup and speedup the UNC path through wchar->utf-8 filename translation
Revision Changes Path
1.84 +2 -4 apr/file_io/win32/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/open.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- open.c 2001/10/08 17:33:14 1.83
+++ open.c 2001/10/10 17:36:12 1.84
@@ -129,7 +129,8 @@
srcstr[6] == L'C' && srcstr[7] == L'\\') {
srcremains -= 8;
srcstr += 8;
- strcpy(retstr, "//");
+ retstr[0] = '\\';
+ retstr[1] = '\\';
retlen -= 2;
t += 2;
}
@@ -145,9 +146,6 @@
if (srcremains) {
return APR_ENAMETOOLONG;
}
- for (; *t; ++t)
- if (*t == L'/')
- *t = L'\\';
return APR_SUCCESS;
}
#endif