[Asterisk-cvs] asterisk/channels chan_sip.c,1.381,1.382

anthm at lists.digium.com anthm at lists.digium.com
Mon May 10 14:35:23 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Patch Submitted by BKW on 5/10/2004 to chan_sip.c
Fixing 'show help' inefficency.


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.381
retrieving revision 1.382
diff -u -d -r1.381 -r1.382
--- chan_sip.c	9 May 2004 23:40:49 -0000	1.381
+++ chan_sip.c	10 May 2004 18:45:20 -0000	1.382
@@ -3749,7 +3749,7 @@
 	/* Save User agent */
 	useragent = get_header(req, "User-Agent");
 	if(useragent && strcasecmp(useragent, p->useragent)) {
-		strncpy(p->useragent, get_header(req, "User-Agent"),sizeof(p->useragent));
+		strncpy(p->useragent, useragent, sizeof(p->useragent));
 		if (option_verbose > 2) {
 			ast_verbose(VERBOSE_PREFIX_3 "Saved useragent \"%s\" for peer %s\n",p->useragent,p->name);  
 		}




More information about the svn-commits mailing list