diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-27 22:34:25 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-27 22:34:25 +0000 |
commit | 1d5d54afcf570526546a324780c523b88e4da5a0 (patch) | |
tree | de22a21fc42a034989fc1a064667e0730b58f536 /apps/app_voicemail.c | |
parent | f96d87da331b51acc867e26e24802ff3bae3f5a8 (diff) |
prevent seg faults
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@4562 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-x | apps/app_voicemail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 6d38b152e..17df82321 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2322,7 +2322,7 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i snprintf(todir, sizeof(todir), "%s/voicemail/%s/%s/INBOX", (char *)ast_config_AST_SPOOL_DIR, vmtmp->context, vmtmp->mailbox); snprintf(sys, sizeof(sys), "mkdir -p %s\n", todir); snprintf(ext_context, sizeof(ext_context), "%s@%s", vmtmp->mailbox, vmtmp->context); - ast_log(LOG_DEBUG, sys); + ast_log(LOG_DEBUG, "%s", sys); ast_safe_system(sys); todircount = count_messages(todir); @@ -2333,11 +2333,11 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i if (!strcasecmp(s, "wav49")) s = "WAV"; snprintf(sys, sizeof(sys), "cp %s/msg%04d.%s %s/msg%04d.%s\n", dir, curmsg, s, todir, todircount, s); - ast_log(LOG_DEBUG, sys); + ast_log(LOG_DEBUG, "%s", sys); ast_safe_system(sys); } snprintf(sys, sizeof(sys), "cp %s/msg%04d.txt %s/msg%04d.txt\n", dir, curmsg, todir, todircount); - ast_log(LOG_DEBUG, sys); + ast_log(LOG_DEBUG, "%s", sys); ast_safe_system(sys); snprintf(fn, sizeof(fn), "%s/msg%04d", todir,todircount); |