summaryrefslogtreecommitdiff
path: root/res/res_odbc.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-07-10 23:21:39 +0000
committerRussell Bryant <russell@russellbryant.com>2005-07-10 23:21:39 +0000
commitc18fd5cd8c1b6e582915d920d0831441505c30fc (patch)
treecd22ca2f4e2c7b9edcb1c3ee5c724068bae3bc36 /res/res_odbc.c
parent206f712599e504d8b20ff48663e130a9726f8896 (diff)
more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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;