diff --git a/src/share/vm/prims/jvm.cpp b/src/share/vm/prims/jvm.cpp index c39b1025232ff73f28b38db29436f4849550fb51..5586ed7de45557adc01fec40a395afbe0aa61a7e 100644 --- a/src/share/vm/prims/jvm.cpp +++ b/src/share/vm/prims/jvm.cpp @@ -4544,7 +4544,7 @@ JVM_END JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size)) { - memset(info, 0, sizeof(info_size)); + memset(info, 0, info_size); info->jvm_version = Abstract_VM_Version::jvm_version(); info->update_version = 0; /* 0 in HotSpot Express VM */