diff --git a/src/voglperf.c b/src/voglperf.c index d271e28..99f8eff 100644 --- a/src/voglperf.c +++ b/src/voglperf.c @@ -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) { diff --git a/src/voglutils.cpp b/src/voglutils.cpp index 4a92a82..26ec6d5 100644 --- a/src/voglutils.cpp +++ b/src/voglutils.cpp @@ -783,7 +783,7 @@ void webby_update(std::vector *commands, struct timeval *timeoutval //---------------------------------------------------------------------------------------------------------------------- void webby_end() { - webby_data().ws_connections.empty(); + static_cast(webby_data().ws_connections.empty()); if (webby_data().server) {