[Asterisk-cvs] asterisk/pbx pbx_ael.c,1.6,1.7
markster
markster
Tue Aug 2 22:22:40 CDT 2005
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv21055/pbx
Modified Files:
pbx_ael.c
Log Message:
Fix AEL max character bug (bug #4837)
Index: pbx_ael.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_ael.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pbx_ael.c 15 Jul 2005 16:32:44 -0000 1.6
+++ pbx_ael.c 3 Aug 2005 02:26:19 -0000 1.7
@@ -1149,7 +1149,7 @@
buf[0] = 0;
bufsiz = 4096;
while(!feof(f)) {
- if (strlen(buf) - bufsiz < 2048) {
+ if (bufsiz - strlen(buf) < 2048) {
bufsiz += 4096;
tbuf = realloc(buf, bufsiz);
if (tbuf) {
More information about the svn-commits
mailing list