aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-04 17:09:25 +0000
committerautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-04 17:09:25 +0000
commit4265f3cdd4ac528201b3cd8545f3cd926afc4332 (patch)
tree5a5834e4c12045a0b1710bb064213900bd807c66 /apps/app_voicemail.c
parent76e4cfd5d8deb0fb39b05150b0952b90285c160e (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@49446 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index c92ee96a3..11db0faa9 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2443,14 +2443,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;
}
@@ -4822,7 +4822,7 @@ static int vm_tempgreeting(struct ast_channel *chan, struct ast_vm_user *vmu, st
adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DISPLAY);
}
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;
}