diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-10 22:56:21 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-10 22:56:21 +0000 |
commit | 9690f518f5b644b670f4e8e047083535c106dafa (patch) | |
tree | 922450cc41923990ec190243f4948def77780abf /acl.c | |
parent | cd6f09bb95479166e8a62538b941e9e5daa3394e (diff) |
more ast_copy_string conversions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6073 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acl.c')
-rwxr-xr-x | acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -146,7 +146,7 @@ struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path) path = path->next; } if (ha) { - strncpy(tmp, stuff, sizeof(tmp) - 1); + ast_copy_string(tmp, stuff, sizeof(tmp)); nm = strchr(tmp, '/'); if (!nm) nm = "255.255.255.255"; @@ -248,7 +248,7 @@ int ast_lookup_iface(char *iface, struct in_addr *address) struct my_ifreq ifreq; memset(&ifreq, 0, sizeof(ifreq)); - strncpy(ifreq.ifrn_name,iface,sizeof(ifreq.ifrn_name) - 1); + ast_copy_string(ifreq.ifrn_name,iface,sizeof(ifreq.ifrn_name)); mysock = socket(PF_INET,SOCK_DGRAM,IPPROTO_IP); res = ioctl(mysock,SIOCGIFADDR,&ifreq); |