diff options
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c index 5b2783d326..c04360f28e 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1202,8 +1202,8 @@ static int handle_pipe_action(struct vty *vty, const char *cmd_in, vty_out(vty, "%% Bad regexp '%s'", regexp); goto fail; } - cmd_out = XSTRDUP(MTYPE_TMP, cmd_in); - *(strstr(cmd_in, "|")) = '\0'; + *cmd_out = XSTRDUP(MTYPE_TMP, cmd_in); + *(strstr(*cmd_out, "|")) = '\0'; } else { vty_out(vty, "%% Unknown action '%s'", token); goto fail; |
