Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/voglperf.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static int voglperf_logfile_open(const char *logfile_name, uint64_t seconds)

g_logfile_time = seconds * 1000000000;

strncpy(g_logfile_name, logfile_name, sizeof(g_logfile_name));
strncpy(g_logfile_name, logfile_name, sizeof(g_logfile_name) - 1);

if (g_msqid != -1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/voglutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ void webby_update(std::vector<std::string> *commands, struct timeval *timeoutval
//----------------------------------------------------------------------------------------------------------------------
void webby_end()
{
webby_data().ws_connections.empty();
static_cast<void>(webby_data().ws_connections.empty());

if (webby_data().server)
{
Expand Down