aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-03 15:21:58 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-03 15:21:58 +0000
commit6f7fbed69591f1cd196a12ef173f37a536a0e45c (patch)
tree8c9131e033005353e868385ab0dd351e78b8e2e3 /apps/app_dial.c
parent358eba38767b79d2d8b8d850bbf0c6fa4240619d (diff)
I have no idea what the heck that was supposed to be
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1821 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-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, '|');