diff options
-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 |