]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove silly use of strncmp.
authorJoshua Colp <jcolp@digium.com>
Mon, 1 Apr 2013 14:07:11 +0000 (14:07 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 1 Apr 2013 14:07:11 +0000 (14:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@384414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 9e5723d4949fd85c26d433a2f3d11906c1dd515b..327ab54b019fc78a00e5e0eb0fb079020f3ef178 100644 (file)
@@ -14813,8 +14813,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) {
-               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;