--- apps/app_directed_pickup.c.orig 2010-02-18 16:49:33.000000000 +0100 +++ apps/app_directed_pickup.c 2010-02-18 17:59:33.000000000 +0100 @@ -129,9 +129,9 @@ 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