envy24control: fix cast warnings and string array overflows

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2025-01-26 12:40:23 +01:00
parent 54b5913cd5
commit 97092591e0
7 changed files with 20 additions and 16 deletions

View file

@ -65,7 +65,7 @@ static GdkGC *get_pen(int idx, int nRed, int nGreen, int nBlue)
return gc;
}
static int get_index(gchar *name)
static int get_index(const gchar *name)
{
int result;