Replace call to snprintf() with empty format string with call to memset() in tracker_send_report()
This commit is contained in:
parent
e109b4b15e
commit
59827457f4
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ namespace pvpgn
|
|||
if (uname(&utsbuf) != 0)
|
||||
{
|
||||
eventlog(eventlog_level_warn, __FUNCTION__, "could not get platform info (uname: {})", pstrerror(errno));
|
||||
std::snprintf(reinterpret_cast<char*>(packet.platform), sizeof packet.platform, "");
|
||||
std::memset(packet.platform, 0, sizeof(packet.platform));
|
||||
}
|
||||
}
|
||||
std::snprintf(reinterpret_cast<char*>(packet.platform), sizeof packet.platform, "%s", utsbuf.sysname);
|
||||
|
|
Loading…
Add table
Reference in a new issue