From: Russell Bryant Date: Tue, 5 Apr 2005 10:12:24 +0000 (+0000) Subject: silly sizeof ... (bug #3887) X-Git-Tag: 1.0.11.1~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc4fdf0792b83003e02846893e2956dd10785f0;p=thirdparty%2Fasterisk.git silly sizeof ... (bug #3887) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5405 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/logger.c b/logger.c index a8c0c0dbfc..f32cab420b 100755 --- 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; }