aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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, '|');