From 470f688a28975e63c0df4ffdb8a0ac490f4cf3d9 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 25 Oct 2006 14:44:50 +0000 Subject: Merged revisions 46200 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r46200 | kpfleming | 2006-10-25 09:32:08 -0500 (Wed, 25 Oct 2006) | 2 lines 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/trunk@46201 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_adsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'res/res_adsi.c') diff --git a/res/res_adsi.c b/res/res_adsi.c index 9cc085dbb..62f838198 100644 --- a/res/res_adsi.c +++ b/res/res_adsi.c @@ -1114,10 +1114,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++; } } -- cgit v1.2.3