hotspot/src/os/aix/vm/os_aix.cpp
changeset 46331 e3017116b9e5
parent 43463 7a094360fe82
child 46346 4085295dcf51
--- a/hotspot/src/os/aix/vm/os_aix.cpp	Wed Mar 15 10:25:37 2017 -0400
+++ b/hotspot/src/os/aix/vm/os_aix.cpp	Mon Mar 13 20:23:11 2017 +0100
@@ -1576,7 +1576,7 @@
   Dl_info dlinfo;
   int ret = dladdr(CAST_FROM_FN_PTR(void *, os::jvm_path), &dlinfo);
   assert(ret != 0, "cannot locate libjvm");
-  char* rp = realpath((char *)dlinfo.dli_fname, buf);
+  char* rp = os::Posix::realpath((char *)dlinfo.dli_fname, buf, buflen);
   assert(rp != NULL, "error in realpath(): maybe the 'path' argument is too long?");
 
   strncpy(saved_jvm_path, buf, sizeof(saved_jvm_path));