[asterisk-commits] file: branch 11 r384414 - /branches/11/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 1 09:07:15 CDT 2013
Author: file
Date: Mon Apr 1 09:07:11 2013
New Revision: 384414
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384414
Log:
Remove silly use of strncmp.
Modified:
branches/11/apps/app_voicemail.c
Modified: branches/11/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_voicemail.c?view=diff&rev=384414&r1=384413&r2=384414
==============================================================================
--- branches/11/apps/app_voicemail.c (original)
+++ branches/11/apps/app_voicemail.c Mon Apr 1 09:07:11 2013
@@ -14813,8 +14813,8 @@
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;
More information about the asterisk-commits
mailing list