Scripts/Commands: Fix static analysis issues

This commit is contained in:
Nyeriah committed 2014-10-18 20:17:31 -03:00
1 parent 15a9c6729e
commit 5462936896
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -1963,12 +1963,12 @@ public:
// we have to manually set the string for mutedate
time_t sqlTime = fields[0].GetUInt32();
struct tm* timeinfo;
tm timeinfo;
char buffer[80];
// set it to string
timeinfo = localtime_r(&sqlTime);
strftime(buffer, sizeof(buffer),"%Y-%m-%d %I:%M%p", timeinfo);
localtime_r(&sqlTime, &timeinfo);
strftime(buffer, sizeof(buffer),"%Y-%m-%d %I:%M%p", &timeinfo);
handler->PSendSysMessage(LANG_COMMAND_MUTEHISTORY_OUTPUT, buffer, fields[1].GetUInt32(), fields[2].GetCString(), fields[3].GetCString());
} while (result->NextRow());