changeset 58225:74094a60d018

8231930: Windows build fails after JDK-8191521 Reviewed-by: dholmes, clanger
author shade
date Mon, 07 Oct 2019 15:00:24 +0200
parents b1da055915ef
children d148a7e7160c
files test/hotspot/gtest/runtime/test_os_windows.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/gtest/runtime/test_os_windows.cpp	Mon Oct 07 13:32:44 2019 +0100
+++ b/test/hotspot/gtest/runtime/test_os_windows.cpp	Mon Oct 07 15:00:24 2019 +0200
@@ -354,7 +354,7 @@
 
   if (convert_to_cstring(buf, JVM_MAXPATHLEN, path)) {
     ::testing::Test::RecordProperty(name, buf);
-    snprintf(buf, JVM_MAXPATHLEN, "%d", (int) wcslen(path));
+    os::snprintf(buf, JVM_MAXPATHLEN, "%d", (int) wcslen(path));
     ::testing::Test::RecordProperty(len_name, buf);
   }
 }