Fix discarded const qualifiers from string functions

This is a new warning in GCC 15 that is being promoted to an error due to
the werror=true in meson.build.
This commit is contained in:
Yaakov Selkowitz 2025-12-16 22:10:39 -05:00
parent 6e533231b0
commit 15ebc433ba
3 changed files with 3 additions and 3 deletions

2
osc.c
View file

@ -513,7 +513,7 @@ osc_uri(struct terminal *term, char *string)
key_value = strtok_r(NULL, ":", &ctx))
{
const char *key = key_value;
char *operator = strchr(key_value, '=');
char *operator = (char *)strchr(key_value, '=');
if (operator == NULL)
continue;