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:
Samuel Thibault
2022-06-09 08:43:50 +02:00
parent 2d3a49b161
commit a660fc04cc
14 changed files with 51 additions and 51 deletions
+1 -1
View File
@@ -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);