Improve code security posture by replacing sprintf with a safer function.
This commit is contained in:
parent
1a7e303f97
commit
f3ad05347e
16 changed files with 75 additions and 69 deletions
|
@ -356,7 +356,7 @@ public:
|
|||
{
|
||||
if ((_vMajor)||(_vMinor)||(_vRevision)) {
|
||||
char tmp[32];
|
||||
sprintf(tmp,"%u.%u.%u",_vMajor,_vMinor,_vRevision);
|
||||
Utils::snprintf(tmp,sizeof(tmp),"%u.%u.%u",_vMajor,_vMinor,_vRevision);
|
||||
return std::string(tmp);
|
||||
}
|
||||
return std::string("?");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue