Replace most instances of sprintf() with snprintf()

This commit is contained in:
Adam Honse 2023-03-02 00:14:17 -06:00
parent c02d401b1d
commit ff8ac680ad
14 changed files with 36 additions and 36 deletions

View file

@ -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;
}