[svn-commits] qwell: branch 1.4 r103504 - /branches/1.4/main/asterisk.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 12 16:24:03 CST 2008


Author: qwell
Date: Tue Feb 12 16:24:03 2008
New Revision: 103504

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103504
Log:
revert accidental change from last commit.  oops

Modified:
    branches/1.4/main/asterisk.c

Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=103504&r1=103503&r2=103504
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Tue Feb 12 16:24:03 2008
@@ -1721,8 +1721,7 @@
 	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 @@
 			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 {




More information about the svn-commits mailing list