Remove silly use of strncmp.
[asterisk/asterisk.git] / 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) {
-               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;