[Asterisk-cvs] asterisk logger.c,1.58,1.59

markster at lists.digium.com markster at lists.digium.com
Mon Mar 28 15:04:11 CST 2005


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

Modified Files:
	logger.c 
Log Message:
No need for sizeof (bug #3887)


Index: logger.c
===================================================================
RCS file: /usr/cvsroot/asterisk/logger.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- logger.c	11 Mar 2005 08:49:00 -0000	1.58
+++ logger.c	28 Mar 2005 20:57:59 -0000	1.59
@@ -171,7 +171,7 @@
 		    chan->facility = -1;
 		    cptr = facilitynames;
 		    while (cptr->c_name) {
-			if (!strncasecmp(facility, cptr->c_name, sizeof(cptr->c_name))) {
+			if (!strcasecmp(facility, cptr->c_name)) {
 			    chan->facility = cptr->c_val;
 			    break;
 			}




More information about the svn-commits mailing list