diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-02 00:25:16 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-02 00:25:16 +0000 |
commit | 847b7a6236a517d52f4dbc673ef5adce6723eb36 (patch) | |
tree | 95d74d9cf050fbc9d2aeb9a473f27065fe72f0b3 /apps | |
parent | 0b308eadda9bab5ec24952f15405cd60b3b9b62b (diff) |
Ensure that Asterisk builds with --enable-dev-mode, even on the latest gcc
and glibc.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@160207 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index fdb848cec..8fdbd3696 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2287,7 +2287,9 @@ static int retrieve_file(char *dir, int msgnum) } } } - truncate(full_fn, fdlen); + if (truncate(full_fn, fdlen) < 0) { + ast_log(LOG_WARNING, "Unable to truncate '%s': %s\n", full_fn, strerror(errno)); + } } } else { SQLLEN ind; |