From f9956b9524ddafdb9d0cec042213eaa8229aad8c Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Tue, 29 Mar 2011 01:49:16 +0100 Subject: Bring "ex" version up to date with 0.99.18 Release: 0.99.18ex15p -- Pipework Branch Also fixes issue with unknown attributes -- does not release them prematurely. Contains the "bgpd: New show commands for improved view and address family support", which is post 0.99.18. (But not RFC 5082 GTSM.) --- lib/log.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/log.c') diff --git a/lib/log.c b/lib/log.c index e3296d3a..d78c795e 100644 --- a/lib/log.c +++ b/lib/log.c @@ -306,6 +306,8 @@ zlog (struct zlog *zl, int priority, const char *format, ...) /*------------------------------------------------------------------------------ * Preparation of line to send to logging: file, stdout or "monitor" terminals. + * + * Line ends in '\n', but no terminating '\0'. */ static void uvzlog_line(logline ll, struct zlog *zl, int priority, @@ -314,7 +316,7 @@ uvzlog_line(logline ll, struct zlog *zl, int priority, const char* q ; qf_str_t qfs ; - qfs_init(qfs, ll->line, sizeof(ll->line) - 1) ; /* leave space for '\n' */ + qfs_init(qfs, ll->line, sizeof(ll->line)) ; /* "