Skip to content

Commit

Permalink
Roll everything into a single unicode -> utf8 path converter, and what
Browse files Browse the repository at this point in the history
  happens?  I break it (big surprize.)


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60702 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
wrowe committed Nov 11, 2000
1 parent 823d383 commit f930f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file_io/win32/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ char *unicode_to_utf8_path(const apr_wchar_t* srcstr, apr_pool_t *p)
* allows '/' path seperators, and APR always uses '/'s.
*/
int srcremains = wcslen(srcstr) + 1;
int retremains = (srcremains - 5) * 3 + 1;
int retremains = (srcremains - 1) * 3 + 1;
char *t, *retstr;
if (srcstr[0] == L'\\' && srcstr[1] == L'\\' &&
srcstr[2] == L'?' && srcstr[3] == L'\\') {
Expand Down

0 comments on commit f930f96

Please sign in to comment.