From af19291e011c936223984c153fefcfb3f87e0774 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 3 Dec 2003 15:21:58 +0000 Subject: [PATCH] I have no idea what the heck that was supposed to be git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1821 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_dial.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/app_dial.c b/apps/app_dial.c index 33293fe73c..7ff2f76731 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -366,8 +366,7 @@ static int dial_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); - /* Parse our arguments XXX Check for failure XXX */ - strncpy(info, (char *)data, strlen((char *)data) + AST_MAX_EXTENSION-1); + strncpy(info, (char *)data, sizeof(info) - 1); peers = info; if (peers) { timeout = strchr(info, '|');