mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-19 23:32:59 -04:00
Fix snprintf size check warning in AsusCerberusKeyboardController
This commit is contained in:
1 parent
834b0cc9c9
commit
8308c21bef
1 file changed
+2
-2
@@ -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