mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-04 01:40:21 -05:00
Convert most dynamic allocations to use functions from xmalloc.h
This commit is contained in:
parent
ecb2695822
commit
7a77958ba2
21 changed files with 133 additions and 68 deletions
2
config.c
2
config.c
|
|
@ -752,7 +752,7 @@ parse_section_key_bindings(
|
|||
}
|
||||
|
||||
pipe_len = pipe_cmd_end - value - 1;
|
||||
pipe_cmd = strndup(&value[1], pipe_len);
|
||||
pipe_cmd = xstrndup(&value[1], pipe_len);
|
||||
|
||||
if (!tokenize_cmdline(pipe_cmd, &pipe_argv)) {
|
||||
LOG_AND_NOTIFY_ERR("%s:%d: syntax error in command line", path, lineno);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue