diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-29 12:56:46 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-29 12:56:46 +0000 |
commit | ed56b47de7f4a39c426fef692f424d82e565714a (patch) | |
tree | d715877541188789ffca02a85def77a7a01cbea9 /res/res_osp.c | |
parent | eb2476308635e0c068a4ab2f27e9adbbf935c2ef (diff) |
Create reentrant ast_inet_ntoa and replace all inet_ntoa's with ast_inet_ntoa's (but #1944)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3345 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_osp.c')
-rwxr-xr-x | res/res_osp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_osp.c b/res/res_osp.c index c62735ede..9aa8d66da 100755 --- a/res/res_osp.c +++ b/res/res_osp.c @@ -452,7 +452,7 @@ int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *tim } callerid = l; ast_mutex_lock(&osplock); - strcpy(ip, inet_ntoa(addr)); + ast_inet_ntoa(ip, sizeof(ip), addr)); osp = providers; while(osp) { if (!strcasecmp(osp->name, provider)) { |