record.cpp: fix compiler warning -Wformat-overflow

Origin commit data
------------------
Branch: ni/coolstream
Commit: 550c9ca76c
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-01-25 (Wed, 25 Jan 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2023-01-25 22:37:07 +01:00
committed by vanhofen
parent 1d15d0a2f4
commit 73c546d822

View File

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