Skip to content
Snippets Groups Projects
Commit 9e7a10d8 authored by Matthew Jordan's avatar Matthew Jordan
Browse files

funcs/func_cdr: Fix non-epoch timestamps broken by improper char array deref

Thanks to snuffy for pointing this issue out and fixing it.

(closes issue ASTERISK-23250)
Reported by: snuffy
patches:
  func_cdr-fix.diff uploaded by snuffy (License 5024)
........

Merged revisions 407259 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 61aa7ce7
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ static void cdr_read_callback(void *data, struct stasis_subscription *sub, struc
}
fmt_time.tv_usec = tv_usec;
ast_localtime(&fmt_time, &tm, NULL);
ast_strftime(tempbuf, sizeof(*tempbuf), "%Y-%m-%d %T", &tm);
ast_strftime(tempbuf, sizeof(tempbuf), "%Y-%m-%d %T", &tm);
} else if (!strcasecmp("disposition", args.variable)) {
int disposition;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment