summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index 008f98a34c..a19d392f38 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1496,7 +1496,7 @@ static void permute(struct graph_node *start, struct vty *vty)
static void print_cmd(struct vty *vty, const char *cmd)
{
int i, j, len = strlen(cmd);
- char buf[len];
+ char buf[len + 1];
bool skip = false;
j = 0;