changeset 8585:8528cb30b2b3

Merge
author kbarrett
date Wed, 24 Jun 2015 02:00:21 +0200
parents a005dca78b98 987e2ab36734
children 627850850754
files
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/compactHashtable.cpp	Tue Jun 23 18:05:27 2015 +0000
+++ b/src/share/vm/classfile/compactHashtable.cpp	Wed Jun 24 02:00:21 2015 +0200
@@ -25,6 +25,7 @@
 #include "precompiled.hpp"
 #include "classfile/javaClasses.hpp"
 #include "memory/metaspaceShared.hpp"
+#include "prims/jvm.h"
 #include "utilities/numberSeq.hpp"
 #include <sys/stat.h>
 
@@ -343,8 +344,10 @@
 }
 
 void HashtableTextDump::corrupted(const char *p, const char* msg) {
-  char info[60];
-  sprintf(info, "%s. Corrupted at line %d (file pos %d)", msg, _line_no, (int)(p - _base));
+  char info[100];
+  jio_snprintf(info, sizeof(info),
+               "%s. Corrupted at line %d (file pos %d)",
+               msg, _line_no, (int)(p - _base));
   quit(info, _filename);
 }