hotspot/src/os/posix/vm/os_posix.cpp
changeset 27471 6e56277909f1
parent 26569 5fcbc13c071c
child 28166 e42212b64568
--- a/hotspot/src/os/posix/vm/os_posix.cpp	Mon Nov 03 11:34:13 2014 -0800
+++ b/hotspot/src/os/posix/vm/os_posix.cpp	Wed Oct 29 10:13:24 2014 +0100
@@ -663,7 +663,10 @@
     }
   }
 
-  jio_snprintf(out, outlen, ret);
+  if (out && outlen > 0) {
+    strncpy(out, ret, outlen);
+    out[outlen - 1] = '\0';
+  }
   return out;
 }