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

This commit is contained in:
Max Kellermann 2019-04-24 14:40:31 +02:00
parent 1415bac1d6
commit a4bc972aad
1 changed files with 1 additions and 3 deletions

View File

@ -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());
}