Commit a4bc972a authored by Max Kellermann's avatar Max Kellermann

java/File: use String::ToString() in ToAbsolutePath()

parent 1415bac1
......@@ -60,7 +60,5 @@ Java::File::ToAbsolutePath(JNIEnv *env, jobject _file) noexcept
}
Java::String path2(env, path);
char buffer[MPD_PATH_MAX];
path2.CopyTo(env, buffer, sizeof(buffer));
return AllocatedPath::FromUTF8(buffer);
return AllocatedPath::FromFS(path2.ToString());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment