From: Kevin P. Fleming Date: Fri, 19 May 2006 22:55:02 +0000 (+0000) Subject: let's use the proper variable here, instead of segfaulting (don't know how this worke... X-Git-Tag: 1.4.0-beta1~1306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=429360320d4deb030b07ae921493fb733a0fdf22;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 25cca1ec58..4fecbc8651 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";