[Asterisk-cvs] asterisk/res res_osp.c,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Tue Jun 29 09:10:55 CDT 2004


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv16770/res

Modified Files:
	res_osp.c 
Log Message:
Create reentrant ast_inet_ntoa and replace all inet_ntoa's with ast_inet_ntoa's (but #1944)


Index: res_osp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_osp.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- res_osp.c	25 Jun 2004 05:52:55 -0000	1.3
+++ res_osp.c	29 Jun 2004 12:56:46 -0000	1.4
@@ -452,7 +452,7 @@
 	}
 	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)) {




More information about the svn-commits mailing list