mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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:
2
logger.c
2
logger.c
@@ -171,7 +171,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l
|
|||||||
chan->facility = -1;
|
chan->facility = -1;
|
||||||
cptr = facilitynames;
|
cptr = facilitynames;
|
||||||
while (cptr->c_name) {
|
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;
|
chan->facility = cptr->c_val;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user