From 32c97ad2e5739eb074bc99558be6918e30a7d0c3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Mar 2008 23:34:14 +0000 Subject: [PATCH] udpate git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7838 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index f5d16647a0..807d5c93bb 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1791,7 +1791,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons if ((voicemail_greeting_number = switch_channel_get_variable(channel, "voicemail_greeting_number"))) { int num = atoi(voicemail_greeting_number); - if (num > 0 && num < VM_MAX_GREETINGS) { + if (num > 0 && num <= VM_MAX_GREETINGS) { greet_path = switch_mprintf("%s%sgreeting_%d.%s", dir_path, SWITCH_PATH_SEPARATOR, num, profile->file_ext); } } else {