]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
ensure that if the verbose buffer is full, we send it out even if it's not complete...
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 26 Sep 2005 15:43:16 +0000 (15:43 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 26 Sep 2005 15:43:16 +0000 (15:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6662 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index 358caa6cd0b93efffc776cfb8722e956c3862a7f..4e476b279ae42598266b0ead0e820dd854465737 100755 (executable)
--- 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 */