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
This commit is contained in:
Mark Spencer 2003-12-03 15:21:58 +00:00
parent 1740f71793
commit af19291e01
1 changed files with 1 additions and 2 deletions

View File

@ -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, '|');