diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-07 23:19:55 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-07 23:19:55 +0300 |
| commit | 78c724e16acd6e45720df69f4d513bebd805a122 (patch) | |
| tree | ae4684a6a83d72c57f06b89220b0b73cb66a1b63 /lib/command.c | |
| parent | b00436316eb65f7f7872620500e8ef6ee6b9c0b9 (diff) | |
| parent | 77af3a34ba8ef11380f23d4e7e9ce7c097ea8b63 (diff) | |
Merge pull request #8805 from opensourcerouting/find-asan-crash
lib: fix address sanitizer crash on `find`
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 2 |
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; |
