src/hotspot/share/services/diagnosticArgument.cpp
changeset 53908 45a23c64d0f6
parent 53882 ca682d9d8db5
child 58084 cddef3bde924
--- a/src/hotspot/share/services/diagnosticArgument.cpp	Fri Feb 22 18:54:23 2019 -0800
+++ b/src/hotspot/share/services/diagnosticArgument.cpp	Sat Feb 23 10:55:45 2019 +0100
@@ -180,7 +180,7 @@
     _value = NULL;
   } else {
     _value = NEW_C_HEAP_ARRAY(char, len + 1, mtInternal);
-    int n = snprintf(_value, len + 1, "%.*s", (int)len, str);
+    int n = os::snprintf(_value, len + 1, "%.*s", (int)len, str);
     assert((size_t)n <= len, "Unexpected number of characters in string");
   }
 }