summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-12-03 15:21:58 +0000
committerMark Spencer <markster@digium.com>2003-12-03 15:21:58 +0000
commitaf19291e011c936223984c153fefcfb3f87e0774 (patch)
tree8c9131e033005353e868385ab0dd351e78b8e2e3 /apps
parent1740f717933c064a73be0e877e601b58c6ea1bd1 (diff)
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
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_dial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 33293fe73..7ff2f7673 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, '|');