summaryrefslogtreecommitdiffstats
path: root/apps/menus/radio_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/radio_menu.c')
-rw-r--r--apps/menus/radio_menu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/menus/radio_menu.c b/apps/menus/radio_menu.c
index fb3d2b7fee..8871421c11 100644
--- a/apps/menus/radio_menu.c
+++ b/apps/menus/radio_menu.c
@@ -100,11 +100,12 @@ MENUITEM_SETTING(force_mono, &global_settings.fm_force_mono, NULL);
#ifndef FM_MODE
extern int radio_mode;
-static char* get_mode_text(int selected_item, void * data, char *buffer)
+static char* get_mode_text(int selected_item, void * data,
+ char *buffer, size_t buffer_len)
{
(void)selected_item;
(void)data;
- snprintf(buffer, MAX_PATH, "%s %s", str(LANG_MODE),
+ snprintf(buffer, buffer_len, "%s %s", str(LANG_MODE),
radio_mode ? str(LANG_PRESET) :
str(LANG_RADIO_SCAN_MODE));
return buffer;