[Asterisk-cvs] asterisk logger.c,1.83,1.84
kpfleming
kpfleming
Mon Sep 26 11:46:22 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv20752
Modified Files:
logger.c
Log Message:
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)
Index: logger.c
===================================================================
RCS file: /usr/cvsroot/asterisk/logger.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- logger.c 15 Sep 2005 14:27:14 -0000 1.83
+++ logger.c 26 Sep 2005 15:43:16 -0000 1.84
@@ -861,6 +861,12 @@
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 */
More information about the svn-commits
mailing list