From 2d294adb45dfd692f9b4e0a7052646de8c63e46b Mon Sep 17 00:00:00 2001 From: kpfleming Date: Mon, 26 Sep 2005 15:43:16 +0000 Subject: ensure that if the verbose buffer is full, we send it out even if it's not complete (issue #5263, patch modified to actually compile) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6662 f38db490-d61c-443f-a65b-d21fe96a405b --- logger.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'logger.c') diff --git a/logger.c b/logger.c index 358caa6cd..4e476b279 100755 --- a/logger.c +++ b/logger.c @@ -861,6 +861,12 @@ void ast_verbose(const char *fmt, ...) complete = (stuff[len - 1] == '\n') ? 1 : 0; + /* If we filled up the stuff completely, then log it even without the '\n' */ + if (len >= sizeof(stuff) - 1) { + complete = 1; + len = 0; + } + if (complete) { if (msgcnt < MAX_MSG_QUEUE) { /* Allocate new structure */ -- cgit v1.2.3