diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-26 03:23:38 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-26 03:23:38 +0000 |
commit | 77837abdb7863910a4b4254c6b125127156a80b0 (patch) | |
tree | 91ffbbe00f6abc84ba60bcd14a3e9b9d7006a3a7 /apps/app_adsiprog.c | |
parent | a656b3c6a315262c510c7f503b5e7d7608aa2f8c (diff) |
Fix ADSI prog to only accept 253 (bug #2135)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3512 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_adsiprog.c')
-rwxr-xr-x | apps/app_adsiprog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c index f4d18e231..2ec1810a7 100755 --- a/apps/app_adsiprog.c +++ b/apps/app_adsiprog.c @@ -1448,7 +1448,7 @@ static int adsi_prog(struct ast_channel *chan, char *script) bytes = 0; /* Start with key definitions */ for (x=0;x<scr->numkeys;x++) { - if (bytes + scr->keys[x].retstrlen > 254) { + if (bytes + scr->keys[x].retstrlen > 253) { /* Send what we've collected so far */ if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD)) { ast_log(LOG_WARNING, "Unable to send chunk ending at %d\n", x); @@ -1472,7 +1472,7 @@ static int adsi_prog(struct ast_channel *chan, char *script) bytes = 0; /* Continue with the display messages */ for (x=0;x<scr->numdisplays;x++) { - if (bytes + scr->displays[x].datalen > 254) { + if (bytes + scr->displays[x].datalen > 253) { /* Send what we've collected so far */ if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD)) { ast_log(LOG_WARNING, "Unable to send chunk ending at %d\n", x); @@ -1496,7 +1496,7 @@ static int adsi_prog(struct ast_channel *chan, char *script) bytes = 0; /* Send subroutines */ for (x=0;x<scr->numsubs;x++) { - if (bytes + scr->subs[x].datalen > 254) { + if (bytes + scr->subs[x].datalen > 253) { /* Send what we've collected so far */ if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD)) { ast_log(LOG_WARNING, "Unable to send chunk ending at %d\n", x); |