aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-31 15:10:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-31 15:10:12 +0000
commit9b0376efc3408f7057f8c4a3628b8c9786675540 (patch)
tree253f18a7671e37db2d476208f316b8faf54a1861
parentconfig: add 'hide-when-typing' (diff)
config: pipe-*: fix length calculation of the pipe command substring
-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)) {