summaryrefslogtreecommitdiffstats
path: root/lib/ferr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-28 20:34:41 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-28 20:36:44 +0200
commit104ff5d777662c233d606afbb0ebe805eb9482ab (patch)
tree8a7034385851d5c02c8a093f51cc64350480615f /lib/ferr.c
parentMerge pull request #2918 from opensourcerouting/fix-watchfrr-sigchld-handling (diff)
downloadfrr-104ff5d777662c233d606afbb0ebe805eb9482ab.tar.xz
frr-104ff5d777662c233d606afbb0ebe805eb9482ab.zip
lib: Use the actual string we want to limit '===' line to
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/ferr.c')
-rw-r--r--lib/ferr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ferr.c b/lib/ferr.c
index 17ec51c4b..35d0fe4ff 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[sizeof(ubuf) - 1] = '\0';
+ ubuf[strlen(pbuf) - 1] = '\0';
vty_out(vty, "%s\n%s\n", pbuf, ubuf);
vty_out(vty, "Description:\n%s\n\n", ref->description);