changeset 54910:361bd0fb9390

8224033: os::snprintf should be used in virtualizationSupport.cpp Reviewed-by: mbaesken, stuefe
author shade
date Thu, 16 May 2019 21:32:24 +0200
parents c107322c28b0
children c5bb50505a65
files src/hotspot/share/utilities/virtualizationSupport.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/utilities/virtualizationSupport.cpp	Thu May 16 12:36:08 2019 -0700
+++ b/src/hotspot/share/utilities/virtualizationSupport.cpp	Thu May 16 21:32:24 2019 +0200
@@ -65,13 +65,13 @@
     VMGuestLibError sg_error = GuestLib_StatGet("text", "resources", &result_info, &result_size);
     if (sg_error == VMGUESTLIB_ERROR_SUCCESS) {
       has_resource_information = true;
-      snprintf(extended_resource_info_at_startup, sizeof(extended_resource_info_at_startup), "%s", result_info);
+      os::snprintf(extended_resource_info_at_startup, sizeof(extended_resource_info_at_startup), "%s", result_info);
       GuestLib_StatFree(result_info, result_size);
     }
     sg_error = GuestLib_StatGet("text", "host", &result_info, &result_size);
     if (sg_error == VMGUESTLIB_ERROR_SUCCESS) {
       has_host_information = true;
-      snprintf(host_information, sizeof(host_information), "%s", result_info);
+      os::snprintf(host_information, sizeof(host_information), "%s", result_info);
       GuestLib_StatFree(result_info, result_size);
     }
   }