summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-17 19:24:36 +0000
committerMark Spencer <markster@digium.com>2004-07-17 19:24:36 +0000
commitb1e841edab559ef228a1835293ab10220fb97f57 (patch)
tree2bb74fba914fbb7b64fe146c18d69f8e880f5401 /apps
parent68070c82d0c29dd41db05b39953e9a1007fe20a6 (diff)
Make bound more unique (bug #2072)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index af7aa80b4..2cd996855 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -927,7 +927,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m
fprintf(p, "MIME-Version: 1.0\n");
if (attach_user_voicemail) {
/* Something unique. */
- snprintf(bound, sizeof(bound), "voicemail_%d%s%d", msgnum, mailbox, getpid());
+ snprintf(bound, sizeof(bound), "voicemail_%d%s%d%d", msgnum, mailbox, getpid(), (unsigned int)rand());
fprintf(p, "Content-Type: multipart/mixed; boundary=\"%s\"\n\n\n", bound);