8173758: tools/javac/Paths/wcMineField.sh failing with java.lang.ClassNotFoundException
authorhenryjen
Wed, 01 Feb 2017 09:52:46 -0800
changeset 43498 fd3e0590219e
parent 43497 1a2262d4395c
child 43499 987e32c4902b
8173758: tools/javac/Paths/wcMineField.sh failing with java.lang.ClassNotFoundException Reviewed-by: ksrini
jdk/src/java.base/share/native/libjli/java.c
--- a/jdk/src/java.base/share/native/libjli/java.c	Wed Feb 01 16:31:38 2017 +0300
+++ b/jdk/src/java.base/share/native/libjli/java.c	Wed Feb 01 09:52:46 2017 -0800
@@ -1587,7 +1587,7 @@
     p = JLI_MemAlloc(optLen + valueLen + 1);
     memcpy(p, arg, optLen);
     memcpy(p + optLen, value, valueLen);
-    p[optLen + valueLen + 1] = '\0';
+    p[optLen + valueLen] = '\0';
     return p;
 }