correct some of my erroneous snprintfs

This commit is contained in:
DarthArgus
2016-07-31 07:20:21 +00:00
parent 1dff426bbe
commit 04ed17a152
3 changed files with 5 additions and 5 deletions
@@ -58,7 +58,7 @@ void LoggingServerApiObserver::log(const LogMessage & msg)
IGNORE_RETURN(time(&now));
IGNORE_RETURN(gmtime_r(&now, &t));
char dirBuf[128] = { "\0" };
snprintf(dirBuf, sizeof(dirBuf), "%d/%d/%d/", t.tm_year + 1900, t.tm_mon + 1, t.tm_mday);
snprintf(dirBuf, 128, "%d/%d/%d/", t.tm_year + 1900, t.tm_mon + 1, t.tm_mday);
fileName = ConfigLogServer::getClusterName();
fileName += "/";
fileName += dirBuf;