No need for sizeof (bug #3887)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-03-28 20:57:59 +00:00
parent dc9faa21e4
commit bf940e8928

View File

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