config: pipe-*: fix length calculation of the pipe command substring

This commit is contained in:
Daniel Eklöf 2020-07-31 17:10:12 +02:00
parent d4ee9be4d7
commit 9b0376efc3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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)) {