I have no idea what the heck that was supposed to be
authorMark Spencer <markster@digium.com>
Wed, 3 Dec 2003 15:21:58 +0000 (15:21 +0000)
committerMark Spencer <markster@digium.com>
Wed, 3 Dec 2003 15:21:58 +0000 (15:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1821 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 33293fe..7ff2f76 100755 (executable)
@@ -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, '|');