changeset 43498:fd3e0590219e

8173758: tools/javac/Paths/wcMineField.sh failing with java.lang.ClassNotFoundException Reviewed-by: ksrini
author henryjen
date Wed, 01 Feb 2017 09:52:46 -0800
parents 1a2262d4395c
children 987e32c4902b
files jdk/src/java.base/share/native/libjli/java.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }