aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_adsi.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-25 14:32:08 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-25 14:32:08 +0000
commit000e0986072e528276eb7ea9a37728b5b0e6be76 (patch)
treeb186c37b5085861c464a92debbf99dd8c2b71780 /res/res_adsi.c
parentc3ad9c9ef53aa9d4297f7c0f009da3c33f50bebc (diff)
apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46200 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_adsi.c')
-rw-r--r--res/res_adsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/res/res_adsi.c b/res/res_adsi.c
index cea172767..b87221237 100644
--- a/res/res_adsi.c
+++ b/res/res_adsi.c
@@ -1092,10 +1092,9 @@ static void adsi_load(void)
if (!sname)
sname = name;
if (x < ADSI_MAX_SPEED_DIAL) {
- /* Up to 20 digits */
ast_copy_string(speeddial[x][0], v->name, sizeof(speeddial[x][0]));
- strncpy(speeddial[x][1], name, 18);
- strncpy(speeddial[x][2], sname, 7);
+ ast_copy_string(speeddial[x][1], name, 18);
+ ast_copy_string(speeddial[x][2], sname, 7);
x++;
}
}