hotspot/src/share/vm/services/heapDumper.cpp
changeset 33794 41ef3dc95179
parent 33778 790c99403d3c
child 35492 c8c0273e6b91
--- a/hotspot/src/share/vm/services/heapDumper.cpp	Mon Nov 09 11:35:45 2015 +0000
+++ b/hotspot/src/share/vm/services/heapDumper.cpp	Mon Oct 26 16:21:37 2015 +0100
@@ -1973,7 +1973,7 @@
     if (HeapDumpPath == NULL || HeapDumpPath[0] == '\0') {
       // HeapDumpPath=<file> not specified
     } else {
-      strncpy(base_path, HeapDumpPath, sizeof(base_path));
+      strcpy(base_path, HeapDumpPath);
       // check if the path is a directory (must exist)
       DIR* dir = os::opendir(base_path);
       if (dir == NULL) {