From 7a77958ba20c2b344be5e66e69e2f212a4bbf6b3 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sat, 8 Aug 2020 20:34:30 +0100 Subject: Convert most dynamic allocations to use functions from xmalloc.h --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index 64caa4ab..aeea91b5 100644 --- a/config.c +++ b/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); -- cgit v1.3