8231930: Windows build fails after JDK-8191521
authorshade
Mon, 07 Oct 2019 15:00:24 +0200
changeset 58474 74094a60d018
parent 58473 b1da055915ef
child 58477 d148a7e7160c
8231930: Windows build fails after JDK-8191521 Reviewed-by: dholmes, clanger
test/hotspot/gtest/runtime/test_os_windows.cpp
--- 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);
   }
 }