From 07735ca2b17782138f7df85bb3646a9c2ecc02e4 Mon Sep 17 00:00:00 2001 From: sasha-labs Date: Mon, 2 Mar 2026 10:51:00 +0100 Subject: [PATCH] Fix missing const in pointer assignment --- server/global-controls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/global-controls.c b/server/global-controls.c index 1531fce..fbd94f2 100644 --- a/server/global-controls.c +++ b/server/global-controls.c @@ -21,7 +21,7 @@ static int parse_component_path( int *offset_adjust, int *width ) { - char *colon1 = strchr(component_spec, ':'); + const char *colon1 = strchr(component_spec, ':'); if (!colon1) { *path = strdup(component_spec); @@ -30,7 +30,7 @@ static int parse_component_path( return 0; } - char *colon2 = strchr(colon1 + 1, ':'); + const char *colon2 = strchr(colon1 + 1, ':'); if (!colon2) { log_error("Invalid component spec: %s", component_spec); return -1;