aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-12 22:24:03 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-12 22:24:03 +0000
commit5ba519d7e7e74e6095e59e0f0ab5e0521274e8ec (patch)
tree370382a35acdee76db2ceaf9665ee8b232e67226 /main/asterisk.c
parent47161f4d924d5a920a36e11c970f8bdf4cb263fe (diff)
revert accidental change from last commit. oops
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@103504 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 52266b455..ecfca97d4 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 {