changeset 9036:c40a28e54185

8184309: Build warnings from GCC 7.1 on Fedora 26 Reviewed-by: kbarrett, vlivanov
author ysuenaga
date Tue, 08 Jan 2019 04:05:41 +0000
parents b484b18b9f14
children a9ab35a0f5cb
files src/share/vm/code/dependencies.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/dependencies.cpp	Wed Dec 12 14:46:23 2018 +0100
+++ b/src/share/vm/code/dependencies.cpp	Tue Jan 08 04:05:41 2019 +0000
@@ -525,7 +525,7 @@
         xtty->object("x", arg.metadata_value());
       }
     } else {
-      char xn[10]; sprintf(xn, "x%d", j);
+      char xn[12]; sprintf(xn, "x%d", j);
       if (arg.is_oop()) {
         xtty->object(xn, arg.oop_value());
       } else {