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:
parent
9ef171ffe0
commit
3106f64eac
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue