diff options
author | Matt O'Gorman <mogorman@digium.com> | 2007-01-04 16:52:38 +0000 |
---|---|---|
committer | Matt O'Gorman <mogorman@digium.com> | 2007-01-04 16:52:38 +0000 |
commit | 29434b4b93b6da8f63fc3f93af8a939c639eb827 (patch) | |
tree | c70752b83d0d9ab6da5568ed7f92ff752f9a57fb | |
parent | c873acd2e7154f80f5d980aaa5228b644a477ad9 (diff) |
Merged revisions 49413 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.4
................
r49413 | mogorman | 2007-01-04 10:50:56 -0600 (Thu, 04 Jan 2007) | 11 lines
Merged revisions 49412 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.2
........
r49412 | mogorman | 2007-01-04 10:48:43 -0600 (Thu, 04 Jan 2007) | 3 lines
good catch russell sorry i missed that.
fix magic number with proper sizeof
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_voicemail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b51bad607..6bf01932a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2897,14 +2897,14 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ else ast_copy_string(ext_context, vmu->context, sizeof(ext_context)); if (ast_test_flag(options, OPT_BUSY_GREETING)) { - res = create_dirpath(dest, 256, vmu->context, ext, "busy"); + res = create_dirpath(dest, sizeof(dest), vmu->context, ext, "busy"); snprintf(prefile, sizeof(prefile), "%s%s/%s/busy", VM_SPOOL_DIR, vmu->context, ext); } else if (ast_test_flag(options, OPT_UNAVAIL_GREETING)) { - res = create_dirpath(dest, 256, vmu->context, ext, "unavail"); + res = create_dirpath(dest, sizeof(dest), vmu->context, ext, "unavail"); snprintf(prefile, sizeof(prefile), "%s%s/%s/unavail", VM_SPOOL_DIR, vmu->context, ext); } snprintf(tempfile, sizeof(tempfile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, ext); - if (!(res = create_dirpath(dest, 256, vmu->context, ext, "temp"))) { + if (!(res = create_dirpath(dest, sizeof(dest), vmu->context, ext, "temp"))) { ast_log(LOG_WARNING, "Failed to make directory (%s)\n", tempfile); return -1; } @@ -5940,7 +5940,7 @@ static int vm_tempgreeting(struct ast_channel *chan, struct ast_vm_user *vmu, st } snprintf(prefile, sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username); - if (!(res = create_dirpath(dest, 256, vmu->context, vms->username, "temp"))) { + if (!(res = create_dirpath(dest, sizeof(dest), vmu->context, vms->username, "temp"))) { ast_log(LOG_WARNING, "Failed to create directory (%s).\n", prefile); return -1; } |