mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
tokenize: strdup() each individual argv
Instead of referencing the un-tokenized “raw” command string, strdup() each argv. This way, the input string can be ‘const’.
This commit is contained in:
parent
7632e16e36
commit
42ec264075
5 changed files with 56 additions and 38 deletions
1
config.h
1
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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue