diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-03 02:26:19 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-03 02:26:19 +0000 |
commit | becc9777cfb676d2f3912835238b4c1118606fd1 (patch) | |
tree | 1b59ca1daa6f73de43c1d9c9ec9fb626517a05d7 /pbx | |
parent | 2cba42965568e93f15b8f508e40490f6f69e52c0 (diff) |
Fix AEL max character bug (bug #4837)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6259 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_ael.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c index eedc89369..585b1e7b5 100755 --- a/pbx/pbx_ael.c +++ b/pbx/pbx_ael.c @@ -1149,7 +1149,7 @@ static int ast_ael_compile(struct ast_context **local_contexts, const char *file 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) { |