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 4ed3e2f4..283a72ea 100644
--- a/config.c
+++ b/config.c
@@ -592,7 +592,7 @@ parse_section_key_bindings(
struct config_key_binding_normal binding = {
.action = action,
.key = strdup(value),
- .pipe_cmd = pipe_cmd != NULL ? strdup(pipe_cmd) : NULL,
+ .pipe_cmd = pipe_cmd != NULL ? strndup(pipe_cmd, pipe_len) : NULL,
};
tll_push_back(conf->bindings.key, binding);
}