diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-05-19 22:55:02 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-05-19 22:55:02 +0000 |
commit | 429360320d4deb030b07ae921493fb733a0fdf22 (patch) | |
tree | a71566c5a5550bb73c56d0c4d2dc2c2558b97ce8 /apps/app_voicemail.c | |
parent | 004885c2fa1225cb9833694183cc5fada0e0e89c (diff) |
let's use the proper variable here, instead of segfaulting (don't know how this worked for anyone at all)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | 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 25cca1ec5..4fecbc865 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2236,7 +2236,7 @@ static int has_voicemail(const char *mailbox, const char *folder) char tmp[256], *tmp2 = tmp, *mbox, *context; ast_copy_string(tmp, mailbox, sizeof(tmp)); while ((mbox = strsep(&tmp2, ","))) { - if ((context = strchr(tmp2, '@'))) + if ((context = strchr(mbox, '@'))) *context++ = '\0'; else context = "default"; |