diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-09-12 21:25:57 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-09-12 21:25:57 +0000 |
commit | 82cf384e032f9ff4bc0069c939b3cbb27dbce2f3 (patch) | |
tree | 51d668852ed8b3d3fa73f9dbcbf098cdd1daffbd /funcs | |
parent | 25e4377167d504889b7389429f3e625227a77664 (diff) |
Merged revisions 82285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r82285 | tilghman | 2007-09-12 15:12:06 -0500 (Wed, 12 Sep 2007) | 4 lines
Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
updated the localtime.c file from source. Next we'll have to write ast_strptime
to match.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_strings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 5eab9930f..db14c07fd 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -659,7 +659,8 @@ static int acf_strptime(struct ast_channel *chan, const char *cmd, char *data, if (!strptime(args.timestring, args.format, &t.time)) { ast_log(LOG_WARNING, "C function strptime() output nothing?!!\n"); } else { - snprintf(buf, len, "%d", (int) ast_mktime(&t.atm, args.timezone)); + struct timeval tv = ast_mktime(&t.atm, args.timezone); + snprintf(buf, len, "%d", (int) tv.tv_sec); } return 0; |