summaryrefslogtreecommitdiff
path: root/logger.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-09-26 15:43:16 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-09-26 15:43:16 +0000
commit852bf07caa381b5804e792d079c91ab3538a5e85 (patch)
tree70984ff06e5fc72a54c1bb408828dbcdfdf67e36 /logger.c
parent24cdb73f92dd4b51788bb865cc4a510e10f99b95 (diff)
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: https://origsvn.digium.com/svn/asterisk/trunk@6662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'logger.c')
-rwxr-xr-xlogger.c6
1 files changed, 6 insertions, 0 deletions
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 */