Skip to content

Commit

Permalink
record.cpp: fix compiler warning -Wformat-overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dbt1 authored and vanhofen committed Jan 25, 2023
1 parent 837d176 commit 550c9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/record.cpp
Expand Up @@ -1663,7 +1663,7 @@ bool CRecordManager::ShowMenu(void)
if (inst->Timeshift())
mode_icon = NEUTRINO_ICON_MARKER_TIMESHIFT;

sprintf(cnt, "%d", i);
snprintf(cnt, sizeof(cnt), "%c", i);
//define stop key if only one record is running, otherwise define shortcuts
neutrino_msg_t rc_key = CRCInput::convertDigitToKey(shortcut++);
const char * btn_icon = NEUTRINO_ICON_BUTTON_OKAY;
Expand Down

0 comments on commit 550c9ca

Please sign in to comment.