From: Jason Parker Date: Tue, 12 Feb 2008 22:24:03 +0000 (+0000) Subject: revert accidental change from last commit. oops X-Git-Tag: 1.4.19~187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=335e5830406f5f4fde02f7eb0dffaa9e002b594d;p=thirdparty%2Fasterisk.git revert accidental change from last commit. oops git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103504 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/asterisk.c b/main/asterisk.c index 52266b455a..ecfca97d4b 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -1721,8 +1721,7 @@ static int ast_el_read_char(EditLine *el, char *cp) struct pollfd fds[2]; int res; int max; -#define EL_BUF_SIZE 512 - char buf[EL_BUF_SIZE]; + char buf[512]; for (;;) { max = 1; @@ -1785,7 +1784,7 @@ static int ast_el_read_char(EditLine *el, char *cp) if (!ast_opt_exec && !lastpos) write(STDOUT_FILENO, "\r", 1); write(STDOUT_FILENO, buf, res); - if ((res < EL_BUF_SIZE - 1) && ((buf[res-1] == '\n') || (buf[res-2] == '\n'))) { + if ((buf[res-1] == '\n') || (buf[res-2] == '\n')) { *cp = CC_REFRESH; return(1); } else {