Fix snprintf size check warning in AsusCerberusKeyboardController

master
Adam Honse 3 years ago
parent 834b0cc9c9
commit 8308c21bef

@ -55,8 +55,8 @@ std::string AsusCerberusKeyboardController::GetSerialString()
std::string AsusCerberusKeyboardController::GetVersion()
{
char versionstr[5];
snprintf(versionstr, 3, "%X", version);
return(std::string(versionstr, 3));
snprintf(versionstr, 5, "%X", version);
return(std::string(versionstr));
}
void AsusCerberusKeyboardController::SetProfile

Loading…
Cancel
Save