aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
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)) {