diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ferr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ferr.c b/lib/ferr.c index 35d0fe4ff..fb5719d4d 100644 --- a/lib/ferr.c +++ b/lib/ferr.c @@ -148,7 +148,7 @@ void log_ref_display(struct vty *vty, uint32_t code, bool json) snprintf(pbuf, sizeof(pbuf), "\nError %"PRIu32" - %s", ref->code, ref->title); memset(ubuf, '=', strlen(pbuf)); - ubuf[strlen(pbuf) - 1] = '\0'; + ubuf[strlen(pbuf)] = '\0'; vty_out(vty, "%s\n%s\n", pbuf, ubuf); vty_out(vty, "Description:\n%s\n\n", ref->description); |