mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-28 10:51:13 -04:00
Remove null terminations in fwver string when reading from Steelseries Apex keyboards.
This commit is contained in:
@@ -102,6 +102,7 @@ public:
|
||||
if(result > 0)
|
||||
{
|
||||
std::string fwver(ibuf, ibuf+STEELSERIES_PACKET_IN_SIZE);
|
||||
fwver = fwver.c_str();
|
||||
|
||||
/*---------------------------------------*\
|
||||
| Find 2 periods in string, if found we |
|
||||
@@ -133,6 +134,7 @@ public:
|
||||
if(result > 0)
|
||||
{
|
||||
std::string fwver(ibuf, ibuf+STEELSERIES_PACKET_IN_SIZE);
|
||||
fwver = fwver.c_str();
|
||||
|
||||
std::size_t majorp = fwver.find('.');
|
||||
if(majorp != std::string::npos)
|
||||
|
||||
Reference in New Issue
Block a user