diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-10 19:06:54 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-10 19:06:54 +0000 |
commit | f0e0692afc89736a62f5899cd551b6e7b9674ce3 (patch) | |
tree | f5b3a8e1cf3490b3ea46c8c7f8317987aa7072a7 /apps | |
parent | 547b76254084830807d2d83c5a8830e2f84b67c7 (diff) |
Merged revisions 262240 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r262240 | dvossel | 2010-05-10 14:06:08 -0500 (Mon, 10 May 2010) | 9 lines
fixes PickupChan application
(closes issue #16863)
Reported by: schern
Patches:
app_directed_pickup.c.patch uploaded by schern (license 995)
for_trunk.diff uploaded by cjacobsen (license 1029)
Tested by: Graber, cjacobsen, lathama, rickead2000, dvossel
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@262241 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_directed_pickup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index c409a245b..a00cd475e 100644 --- a/apps/app_directed_pickup.c +++ b/apps/app_directed_pickup.c @@ -129,9 +129,9 @@ static struct ast_channel *my_ast_get_channel_by_name_locked(const char *channam size_t channame_len, chkchan_len; channame_len = strlen(channame); - chkchan_len = channame_len + 2; + chkchan_len = channame_len + 1; - chkchan = alloca(chkchan_len); + chkchan = alloca(chkchan_len + 1); /* need to append a '-' for the comparison so we check full channel name, * i.e SIP/hgc- , use a temporary variable so original stays the same for |