From f97df161f41d55c9984af48f40d70a86b993e7c3 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 29 Jun 2004 12:56:46 +0000 Subject: Create reentrant ast_inet_ntoa and replace all inet_ntoa's with ast_inet_ntoa's (but #1944) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3345 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_osp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') 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)) { -- cgit v1.2.3