Fix edge case for overflow buffer.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher 2011-11-30 22:40:23 +00:00
parent 9ef171ffe0
commit 3106f64eac
1 changed files with 2 additions and 0 deletions

View File

@ -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) {