summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-12-02 00:37:21 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-12-02 00:37:21 +0000
commit3d4c0cd42147e08a0370f95d1d0135aeba6f3131 (patch)
tree36a15e8926ad865d79c9b2dda57bfcb7c4aa42a3 /apps
parent4dc60e756014e2eff2c182445ecdba6f393cacf8 (diff)
Merged revisions 160207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r160207 | tilghman | 2008-12-01 18:25:16 -0600 (Mon, 01 Dec 2008) | 3 lines Ensure that Asterisk builds with --enable-dev-mode, even on the latest gcc and glibc. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 33abd7cf8..b24a904b4 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2843,7 +2843,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 {
res = SQLGetData(stmt, x + 1, SQL_CHAR, rowdata, sizeof(rowdata), NULL);