8261020: Wrong format parameter in create_emergency_chunk_path

Reviewed-by: sgehwolf
Backport-of: d27533f1967411dfd1b50b3fe0f0cebb936f1d3a
This commit is contained in:
lingjun.cg 2025-02-26 09:06:35 +00:00 committed by Denghui Dong
parent 0b5a2e7c65
commit 898e1312ba

View File

@ -306,7 +306,7 @@ static const char* create_emergency_chunk_path(const char* repository_path) {
return NULL;
}
// append the individual substrings
jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path_len, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
return chunk_path;
}