mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 06:11:07 -04:00
Fix snprintf size check warning in AsusCerberusKeyboardController
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user