No need for sizeof (bug #3887)
authorMark Spencer <markster@digium.com>
Mon, 28 Mar 2005 20:57:59 +0000 (20:57 +0000)
committerMark Spencer <markster@digium.com>
Mon, 28 Mar 2005 20:57:59 +0000 (20:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5294 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index a1dad8e..6a617f8 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -171,7 +171,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l
                    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;
                        }