aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_directed_pickup.c
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-10 19:06:08 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-10 19:06:08 +0000
commitb4e989703adb12444aafaeb597e9622f33ef7435 (patch)
tree4b84f949b25085feed18dfff9f806b23a63088ba /apps/app_directed_pickup.c
parent26a012f4f3169d720656bd9829e80207e47484f8 (diff)
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/trunk@262240 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directed_pickup.c')
-rw-r--r--apps/app_directed_pickup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c
index 5ad2e3006..cb8505b56 100644
--- a/apps/app_directed_pickup.c
+++ b/apps/app_directed_pickup.c
@@ -179,9 +179,9 @@ static struct ast_channel *my_ast_get_channel_by_name_locked(const char *channam
char *chkchan;
struct pickup_by_name_args pickup_args;
- pickup_args.len = strlen(channame) + 2;
+ pickup_args.len = strlen(channame) + 1;
- chkchan = alloca(pickup_args.len);
+ chkchan = alloca(pickup_args.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