diff options
Diffstat (limited to 'lib/thread.c')
| -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 45bdbc71d3..f9ff16b7b3 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -157,7 +157,7 @@ static void cpu_record_print(struct vty *vty, uint8_t 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", |
