Author: mturk
Date: Sun Aug 16 08:25:25 2009
New Revision: 804650
URL: http://svn.apache.org/viewvc?rev=804650&view=rev
Log:
Fix typos
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/win32/wutil.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/wutil.c
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/wutil.c?rev=804650&r1=804649&r2=804650&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/wutil.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/wutil.c Sun Aug 16
08:25:25 2009
@@ -91,7 +91,7 @@
* Note that a utf-8 name can never result in more wide chars
* than the original number of utf-8 narrow chars.
*/
- if (srcken > NON_UNC_PATH_LENGTH) {
+ if (srclen > NON_UNC_PATH_LENGTH) {
if (srcstr[1] == ':' && (srcstr[2] == '/' || srcstr[2] == '\\')) {
wcscpy (retstr, L"\\\\?\\");
retlen -= 4;
@@ -107,7 +107,7 @@
retlen -= 8;
t += 8;
}
- else if ((srcstr[0] == '/' || srcstr[0] == '\\')) {
+ else if (srcstr[0] == '/' || srcstr[0] == '\\') {
int cd;
/* Addition to APR. Allow \FilePath
* and construct \\?\CurrenttDrive:\FilePath
@@ -121,6 +121,7 @@
* If not later open will fail anyhow
*/
retstr[4] = L'C';
+ }
retstr[5] = L':';
retlen -= 6;
t += 6;