From 249dee3874bc41531996e00db0fc8ad18bf0e496 Mon Sep 17 00:00:00 2001 From: Stu Black Date: Fri, 3 Oct 2025 00:44:58 -0400 Subject: [PATCH] Fix const qualifier on strings returned by wgethomedir. --- WINGs/menuparser.c | 4 ++-- WINGs/userdefaults.c | 2 +- WINGs/wfilepanel.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WINGs/menuparser.c b/WINGs/menuparser.c index 894cafd1..d2070dd5 100644 --- a/WINGs/menuparser.c +++ b/WINGs/menuparser.c @@ -536,8 +536,8 @@ found_end_define_fname: while (*src != '\0') { idx = 0; if (*src == '~') { - const char *home_head = wgethomedir(); - const char *home = home_head;; + char *home_head = wgethomedir(); + char *home = home_head;; while (*home != '\0') { if (idx < sizeof(buffer) - 2) buffer[idx++] = *home; diff --git a/WINGs/userdefaults.c b/WINGs/userdefaults.c index 90b01dd4..78f8f836 100644 --- a/WINGs/userdefaults.c +++ b/WINGs/userdefaults.c @@ -51,7 +51,7 @@ const char *wusergnusteppath(void) static const char subdir[] = "/" GSUSER_SUBDIR; static char *path = NULL; char *gspath; - const char *h; + char *h; int pathlen; if (path) diff --git a/WINGs/wfilepanel.c b/WINGs/wfilepanel.c index b71faa64..1da05355 100644 --- a/WINGs/wfilepanel.c +++ b/WINGs/wfilepanel.c @@ -761,7 +761,7 @@ static void goFloppy(WMWidget *widget, void *p_panel) static void goHome(WMWidget *widget, void *p_panel) { WMFilePanel *panel = p_panel; - const char *home; + char *home; /* Parameter not used, but tell the compiler that it is ok */ (void) widget;