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

View file

@ -45,7 +45,7 @@ tokenize_cmdline(const char *cmdline, char ***argv)
size_t idx = 0;
while (*p != '\0') {
char *end = strchr(search_start, delim);
char *end = (char *)strchr(search_start, delim);
if (end == NULL) {
if (delim != ' ') {
LOG_ERR("unterminated %s quote", delim == '"' ? "double" : "single");