diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-20 22:40:46 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-20 22:40:46 +0200 |
commit | 4f113d6066f864261901576df9bde1b0aa9e2de2 (patch) | |
tree | 9f53db385a73ae8ebff8ef4db6cf92fd80187fd5 /lib | |
parent | Merge pull request #2092 from dslicenc/import-table-change (diff) | |
download | frr-4f113d6066f864261901576df9bde1b0aa9e2de2.tar.xz frr-4f113d6066f864261901576df9bde1b0aa9e2de2.zip |
lib: fix dynamic stack buffer overflow
oops
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c index f3129e39e..8764c055c 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -140,7 +140,7 @@ static void cpu_record_print(struct vty *vty, thread_type filter) char underline[strlen(name) + 1]; memset(underline, '-', sizeof(underline)); - underline[sizeof(underline)] = '\0'; + underline[sizeof(underline) - 1] = '\0'; vty_out(vty, "\n"); vty_out(vty, "Showing statistics for pthread %s\n", |