[asterisk-commits] tilghman: trunk r346617 - /trunk/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 30 16:40:26 CST 2011


Author: tilghman
Date: Wed Nov 30 16:40:23 2011
New Revision: 346617

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=346617
Log:
Fix edge case for overflow buffer.

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/asterisk.c?view=diff&rev=346617&r1=346616&r2=346617
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Wed Nov 30 16:40:23 2011
@@ -2268,6 +2268,8 @@
 				if (state->prev_line_full && VERBOSE_HASMAGIC(curline)) {
 					level = VERBOSE_MAGIC2LEVEL(curline);
 					curline++;
+				} else {
+					level = state->prev_line_verbosity;
 				}
 				if ((!state->prev_line_full && state->prev_line_verbosity <= option_verbose) || (state->prev_line_full && level <= option_verbose)) {
 					if (write(STDOUT_FILENO, curline, nextline - curline) < 0) {




More information about the asterisk-commits mailing list