Fix compilation on gcc 4.8.1
authorKinsey Moore <kmoore@digium.com>
Tue, 30 Jul 2013 13:46:16 +0000 (13:46 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 30 Jul 2013 13:46:16 +0000 (13:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395728 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pktccops.c

index e3e1625..80726f0 100644 (file)
@@ -1347,7 +1347,7 @@ static char *pktccops_gateset(struct ast_cli_entry *e, int cmd, struct ast_cli_a
        if (a->argc < 9)
                return CLI_SHOWUSAGE;
 
        if (a->argc < 9)
                return CLI_SHOWUSAGE;
 
-       if (!strncmp(a->argv[2], "null", sizeof(a->argv[2]))) {
+       if (!strcmp(a->argv[2], "null")) {
                cmts = NULL;
        } else {
                AST_LIST_LOCK(&cmts_list);
                cmts = NULL;
        } else {
                AST_LIST_LOCK(&cmts_list);