From 42ec2640753650c69385d86c2fbb386d23965c89 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 20 Jun 2021 14:17:31 +0200 Subject: tokenize: strdup() each individual argv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of referencing the un-tokenized “raw” command string, strdup() each argv. This way, the input string can be ‘const’. --- config.h | 1 - 1 file changed, 1 deletion(-) (limited to 'config.h') diff --git a/config.h b/config.h index bdb1a109..a82a0cd1 100644 --- a/config.h +++ b/config.h @@ -63,7 +63,6 @@ DEFINE_LIST(struct config_mouse_binding); typedef tll(char *) config_override_t; struct config_spawn_template { - char *raw_cmd; char **argv; }; -- cgit v1.3