diff --git a/src/java.base/unix/native/libnio/fs/UnixCopyFile.c b/src/java.base/unix/native/libnio/fs/UnixCopyFile.c index fa08fb900af..dca333cc006 100644 --- a/src/java.base/unix/native/libnio/fs/UnixCopyFile.c +++ b/src/java.base/unix/native/libnio/fs/UnixCopyFile.c @@ -80,7 +80,7 @@ Java_sun_nio_fs_UnixCopyFile_bufferedCopy0 { volatile jint* cancel = (jint*)jlong_to_ptr(cancelAddress); - char* buf = (char*)address; + char* buf = (char*)jlong_to_ptr(address); #if defined(__linux__) int advice = POSIX_FADV_SEQUENTIAL | // sequential data access