summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-04-01 14:10:46 +0000
committerJoshua Colp <jcolp@digium.com>2013-04-01 14:10:46 +0000
commit3f2ff8594b1f48f7262172b4894e7c08fcec0061 (patch)
treec2a3171654c750d0b045767a2f7457d02efb5917 /apps/app_voicemail.c
parentb23e8e19507af448986554d4b360ca3ceefc4c18 (diff)
Remove silly use of strncmp.
........ 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
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 5b3dd73f1..0f4c688c0 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -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;