8232052: use string literal for format string when handling PauseAtStartupFile

Reviewed-by: clanger, stuefe
This commit is contained in:
Matthias Baesken 2019-10-09 14:07:44 +02:00
parent 124bc7bb1e
commit 19a6085f43
4 changed files with 4 additions and 4 deletions

View file

@ -3671,7 +3671,7 @@ int os::loadavg(double loadavg[], int nelem) {
void os::pause() {
char filename[MAX_PATH];
if (PauseAtStartupFile && PauseAtStartupFile[0]) {
jio_snprintf(filename, MAX_PATH, PauseAtStartupFile);
jio_snprintf(filename, MAX_PATH, "%s", PauseAtStartupFile);
} else {
jio_snprintf(filename, MAX_PATH, "./vm.paused.%d", current_process_id());
}