silly sizeof ... (bug #3887)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Russell Bryant 21 years ago
parent 8b6aa2741c
commit efc4fdf079

@ -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;
}

Loading…
Cancel
Save