1
0
forked from vitrine/wmaker

Fix const qualifier on strings returned by wgethomedir.

This commit is contained in:
2025-10-03 00:44:58 -04:00
parent 0d6f5b6d57
commit 249dee3874
3 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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)

View File

@@ -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;