8231930: Windows build fails after JDK-8191521

Reviewed-by: dholmes, clanger
This commit is contained in:
Aleksey Shipilev 2019-10-07 15:00:24 +02:00
parent d00fd45b66
commit c1474ca64b

View File

@ -354,7 +354,7 @@ static void record_path(char const* name, char const* len_name, wchar_t* path) {
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);
}
}