Remove silly use of strncmp.
authorJoshua Colp <jcolp@digium.com>
Mon, 1 Apr 2013 14:10:46 +0000 (14:10 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 1 Apr 2013 14:10:46 +0000 (14:10 +0000)
........

Merged revisions 384414 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384416 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 5b3dd73..0f4c688 100644 (file)
@@ -14897,8 +14897,8 @@ static int vm_test_destroy_user(const char *context, const char *mailbox)
 
        AST_LIST_LOCK(&users);
        AST_LIST_TRAVERSE_SAFE_BEGIN(&users, vmu, list) {
 
        AST_LIST_LOCK(&users);
        AST_LIST_TRAVERSE_SAFE_BEGIN(&users, vmu, list) {
-               if (!strncmp(context, vmu->context, sizeof(context))
-                       && !strncmp(mailbox, vmu->mailbox, sizeof(mailbox))) {
+               if (!strcmp(context, vmu->context)
+                       && !strcmp(mailbox, vmu->mailbox)) {
                        AST_LIST_REMOVE_CURRENT(list);
                        ast_free(vmu);
                        break;
                        AST_LIST_REMOVE_CURRENT(list);
                        ast_free(vmu);
                        break;