mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 15:49:48 +00:00
Add more const qualifiers on static arrays
So we know they are just tables, get protected from overflows, and get shared between processes
This commit is contained in:
@@ -1559,7 +1559,7 @@ static void CompileSound(int keyword, int isvowel)
|
||||
int addr = 0;
|
||||
int value = 0;
|
||||
char path[N_ITEM_STRING];
|
||||
static int sound_instns[] = { i_FMT, i_WAV, i_VWLSTART, i_VWLENDING, i_WAVADD };
|
||||
static const int sound_instns[] = { i_FMT, i_WAV, i_VWLSTART, i_VWLENDING, i_WAVADD };
|
||||
|
||||
NextItemBrackets(tSTRING, 2);
|
||||
strcpy(path, item_string);
|
||||
|
||||
Reference in New Issue
Block a user