diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-17 19:24:36 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-17 19:24:36 +0000 |
commit | 2423ab16e6092fa73c121d9a952a2d4750dab760 (patch) | |
tree | 2bb74fba914fbb7b64fe146c18d69f8e880f5401 /apps | |
parent | 191f0ee65bf3f6977e660d0581e83aa26e61487c (diff) |
Make bound more unique (bug #2072)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3458 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 2 |
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); |