Index: subversion/bindings/java/javahl/native/JNIUtil.cpp
===================================================================
--- subversion/bindings/java/javahl/native/JNIUtil.cpp	(revision 18015)
+++ subversion/bindings/java/javahl/native/JNIUtil.cpp	(working copy)
@@ -193,8 +193,8 @@
         inwords = lstrlenW (ucs2_path);
         outbytes = outlength = 3 * (inwords + 1);
         utf8_path = (char *)apr_palloc (pool, outlength);
-        apr_err = apr_conv_ucs2_to_utf8 (ucs2_path, &inwords,
-                                         utf8_path, &outbytes);
+        apr_err = apr_conv_ucs2_to_utf8 ((const apr_wchar_t *) ucs2_path,
+					 &inwords, utf8_path, &outbytes);
         if (!apr_err && (inwords > 0 || outbytes == 0))
           apr_err = APR_INCOMPLETE;
         if (apr_err)


