mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05:00
config: oopsie, need to use strndup() on the pipe command
Since it isn't NULL-terminated.
This commit is contained in:
parent
65a46be822
commit
94bb313282
1 changed files with 1 additions and 1 deletions
2
config.c
2
config.c
|
|
@ -592,7 +592,7 @@ parse_section_key_bindings(
|
|||
struct config_key_binding_normal binding = {
|
||||
.action = action,
|
||||
.key = strdup(value),
|
||||
.pipe_cmd = pipe_cmd != NULL ? strdup(pipe_cmd) : NULL,
|
||||
.pipe_cmd = pipe_cmd != NULL ? strndup(pipe_cmd, pipe_len) : NULL,
|
||||
};
|
||||
tll_push_back(conf->bindings.key, binding);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue