hotspot/src/os/bsd/vm/os_bsd.cpp
changeset 27471 6e56277909f1
parent 27458 eb5f1b4f01e1
child 27474 2b061fd571eb
--- a/hotspot/src/os/bsd/vm/os_bsd.cpp	Mon Nov 03 11:34:13 2014 -0800
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp	Wed Oct 29 10:13:24 2014 +0100
@@ -1875,6 +1875,7 @@
   }
 
   strncpy(saved_jvm_path, buf, MAXPATHLEN);
+  saved_jvm_path[MAXPATHLEN - 1] = '\0';
 }
 
 void os::print_jni_name_prefix_on(outputStream* st, int args_size) {