[asterisk-commits] rizzo: branch rizzo/video_v2 r85389 - /team/rizzo/video_v2/main/logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 11 05:13:37 CDT 2007


Author: rizzo
Date: Thu Oct 11 05:13:37 2007
New Revision: 85389

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85389
Log:
the buffer size used in the logger is pretty small, this can lead to
truncation of messages such as SIP packets and so on.
As a temporary solution bump up the size a bit.

In the longer term term one should generate a warning on truncation.


Modified:
    team/rizzo/video_v2/main/logger.c

Modified: team/rizzo/video_v2/main/logger.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/main/logger.c?view=diff&rev=85389&r1=85388&r2=85389
==============================================================================
--- team/rizzo/video_v2/main/logger.c (original)
+++ team/rizzo/video_v2/main/logger.c Thu Oct 11 05:13:37 2007
@@ -713,7 +713,7 @@
 
 static void ast_log_vsyslog(int level, const char *file, int line, const char *function, char *str)
 {
-	char buf[BUFSIZ];
+	char buf[4*BUFSIZ];
 
 	if (level >= SYSLOG_NLEVELS) {
 		/* we are locked here, so cannot ast_log() */




More information about the asterisk-commits mailing list