Fix snprintf size check warning in AsusCerberusKeyboardController

This commit is contained in:
Adam Honse
2023-05-01 20:09:13 -05:00
parent 834b0cc9c9
commit 8308c21bef

View File

@@ -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