diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-27 23:36:49 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-27 23:36:49 +0000 |
commit | f30b820a6642c7a21e2911b662f79c6edea3e7ca (patch) | |
tree | 609d4b2578ea811e6fc23c34c18393ce65074647 /apps | |
parent | b6f75f97da4474017246cfe62803fdb377486166 (diff) |
Oops
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59283 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 f145f1e62..bd6e8b8d6 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1262,7 +1262,7 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms lseek(fd, 0, SEEK_SET); printf("Length is %d\n", fdlen); fdm = mmap(NULL, fdlen, PROT_READ | PROT_WRITE, MAP_SHARED,fd, 0); - if (fdm != MAP_FAILED) { + if (fdm == MAP_FAILED) { ast_log(LOG_WARNING, "Memory map failed!\n"); goto yuck; } |