diff options
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/win32/open.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/file_io/win32/open.c b/file_io/win32/open.c index 63986ce2e..6ca74fae4 100644 --- a/file_io/win32/open.c +++ b/file_io/win32/open.c @@ -129,7 +129,8 @@ apr_status_t unicode_to_utf8_path(char* retstr, apr_size_t retlen, 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 @@ apr_status_t unicode_to_utf8_path(char* retstr, apr_size_t retlen, if (srcremains) { return APR_ENAMETOOLONG; } - for (; *t; ++t) - if (*t == L'/') - *t = L'\\'; return APR_SUCCESS; } #endif |