8373475: Unintentional format string in logString of AccessInfo.cpp

Reviewed-by: aivanov, prr, azvegint
This commit is contained in:
Damon Nguyen 2025-12-24 00:05:27 +00:00
parent 72e1e15779
commit a59dbc5105

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -97,8 +97,7 @@ void logString(FILE *logfile, const char *msg, ...) {
va_start(argprt, msg);
vsnprintf(tmpbuf, sizeof(tmpbuf), msg, argprt);
fprintf(logfile, tmpbuf);
fprintf(logfile, "\n");
fprintf(logfile, "%s\n", tmpbuf);
fflush(logfile);
}