[asterisk-commits] dvossel: trunk r262240 - /trunk/apps/app_directed_pickup.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon May 10 14:06:14 CDT 2010
Author: dvossel
Date: Mon May 10 14:06:08 2010
New Revision: 262240
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=262240
Log:
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
Modified:
trunk/apps/app_directed_pickup.c
Modified: trunk/apps/app_directed_pickup.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_directed_pickup.c?view=diff&rev=262240&r1=262239&r2=262240
==============================================================================
--- trunk/apps/app_directed_pickup.c (original)
+++ trunk/apps/app_directed_pickup.c Mon May 10 14:06:08 2010
@@ -179,9 +179,9 @@
char *chkchan;
struct pickup_by_name_args pickup_args;
- pickup_args.len = strlen(channame) + 2;
-
- chkchan = alloca(pickup_args.len);
+ pickup_args.len = strlen(channame) + 1;
+
+ 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
More information about the asterisk-commits
mailing list