From 9b0376efc3408f7057f8c4a3628b8c9786675540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 31 Jul 2020 17:10:12 +0200 Subject: [PATCH] config: pipe-*: fix length calculation of the pipe command substring --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index fb939f50..c03bb4bf 100644 --- a/config.c +++ b/config.c @@ -736,7 +736,7 @@ parse_section_key_bindings( return false; } - pipe_len = pipe_cmd_end - pipe_cmd; + pipe_len = pipe_cmd_end - value - 1; pipe_cmd = strndup(&value[1], pipe_len); if (!tokenize_cmdline(pipe_cmd, &pipe_argv)) {