mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user