From 09ef94ed8bd6a7aa0876797a2fa5fd64978aa539 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 3 May 2022 23:58:00 -0400 Subject: [PATCH] add const to const * strings iriver Fix Red the iriver devices overwrite the pointer Change-Id: I20ae6db2aec0f957824b61db349c7c45a95e58d9 --- apps/recorder/recording.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index db8d892b7c..0a3c7af494 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -189,7 +189,8 @@ static short balance_mem[BAL_MEM_SIZE]; #define AGC_MODE_SIZE 5 #define AGC_SAFETY_MODE 0 -static const char* const agc_preset_str[] = +/* Note iriver devices overwrite these strings */ +static const char* agc_preset_str[] = { "Off", "S", "L", "D", "M", "V" }; /* "Off", "Safety (clip)",