aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_odbc.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 23:21:39 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 23:21:39 +0000
commitcbc8a4b7d2382b98f0666fd6a81ce4cca5a4fc22 (patch)
treecd22ca2f4e2c7b9edcb1c3ee5c724068bae3bc36 /res/res_odbc.c
parentd99da55a16b32f4463c40d504fa2ffee4ba8966d (diff)
more ast_copy_string conversions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6075 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_odbc.c')
-rwxr-xr-xres/res_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index c670b710a..903fc972d 100755
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -67,7 +67,7 @@ static int odbc_write(struct odbc_list *registry, char *name, odbc_obj *obj)
int x = 0;
for (x = 0; x < MAX_ODBC_HANDLES; x++) {
if (!registry[x].used) {
- strncpy(registry[x].name, name, sizeof(registry[x].name) - 1);
+ ast_copy_string(registry[x].name, name, sizeof(registry[x].name));
registry[x].obj = obj;
registry[x].used = 1;
return 1;