]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
silly sizeof ... (bug #3887)
authorRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 10:12:24 +0000 (10:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 10:12:24 +0000 (10:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5405 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index a8c0c0dbfc3a404bec78745cdd9def1039aa684f..f32cab420beee49ffdd57fd3128f01809db34445 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -161,7 +161,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;
                        }