diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-24 20:44:37 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-24 20:44:37 +0000 |
commit | 1e8141a6de9d0eb72f9ddda7844a1a1d7c305ed5 (patch) | |
tree | 126280027cfe8e07bedac3d9ac49bf013344fbba /apps | |
parent | b3e8737ccfa041d8b31745c912a5d62410641cb1 (diff) |
Merged revisions 114629 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r114629 | mmichelson | 2008-04-24 15:43:52 -0500 (Thu, 24 Apr 2008) | 16 lines
Merged revisions 114628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r114628 | mmichelson | 2008-04-24 15:43:03 -0500 (Thu, 24 Apr 2008) | 8 lines
Output of channel variables when eventwhencalled=vars was set
was being truncated two characters. This patch corrects the
problem.
(closes issue #12493)
Reported by: davidw
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@114630 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index b95aa12a4..6f7431698 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2070,10 +2070,10 @@ static char *vars2manager(struct ast_channel *chan, char *vars, size_t len) j += 9; } } - if (j > len - 1) - j = len - 1; - vars[j - 2] = '\r'; - vars[j - 1] = '\n'; + if (j > len - 3) + j = len - 3; + vars[j++] = '\r'; + vars[j++] = '\n'; vars[j] = '\0'; } else { /* there are no channel variables; leave it blank */ |