Replace most instances of sprintf() with snprintf()
This commit is contained in:
parent
c02d401b1d
commit
ff8ac680ad
14 changed files with 36 additions and 36 deletions
|
|
@ -122,7 +122,7 @@ void RoccatKovaController::FetchFirmwareVersion()
|
|||
|
||||
uint8_t version = buf[ROCCAT_KOVA_FIRMWARE_VERSION_IDX];
|
||||
char version_str[5] {00};
|
||||
sprintf(version_str, "%.2f", version / 100.);
|
||||
snprintf(version_str, 5, "%.2f", version / 100.);
|
||||
firmware_version = version_str;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue