mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-15 18:47:54 -05:00
Fix output truncation warning in RazerController.cpp
This commit is contained in:
@@ -1008,7 +1008,7 @@ std::string RazerController::razer_get_serial()
|
||||
std::this_thread::sleep_for(5ms);
|
||||
razer_usb_receive(&response_report);
|
||||
|
||||
strncpy(&serial_string[0], (const char*)&response_report.arguments[0], 22);
|
||||
memcpy(&serial_string[0], &response_report.arguments[0], 22);
|
||||
serial_string[22] = '\0';
|
||||
|
||||
for(size_t i = 0; i < 22; i++)
|
||||
|
||||
Reference in New Issue
Block a user