diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-11-30 22:40:23 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-11-30 22:40:23 +0000 |
commit | 3106f64eac5322efdd9f81594d788de4631b938a (patch) | |
tree | b83c23877560abb2ede815cb24817c48c95cbbc8 /main/asterisk.c | |
parent | 9ef171ffe0b39ab6fbf1325c4b7d5a3e5441db75 (diff) |
Fix edge case for overflow buffer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index acddc96d9..8924fe70a 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2268,6 +2268,8 @@ static int ast_el_read_char(EditLine *editline, char *cp) 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) { |