From 17caacfc788caef26ec2141a0b89a40559566597 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 17 Feb 2022 19:37:50 +0100 Subject: [PATCH] [osdep] const in open_in_new --- src/osdep/newwin.c | 2 +- src/osdep/newwin.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdep/newwin.c b/src/osdep/newwin.c index 16f2a7ac7..0a1b04e50 100644 --- a/src/osdep/newwin.c +++ b/src/osdep/newwin.c @@ -67,7 +67,7 @@ open_new_window(struct terminal *term, char *exe_name, int i; foreach_open_in_new (i, environment) { - command = open_in_new[i].command; + command = (char *)open_in_new[i].command; break; } diff --git a/src/osdep/newwin.h b/src/osdep/newwin.h index 350dc08af..957f11bae 100644 --- a/src/osdep/newwin.h +++ b/src/osdep/newwin.h @@ -11,7 +11,7 @@ extern "C" { * of how new windows can be opened. */ struct open_in_new { term_env_type_T env; /* The term->environment the entry covers */ - char *command; /* The default command for openning a window */ + const char *command; /* The default command for openning a window */ char *text; /* The menu text */ };