[svn-commits] mjordan: trunk r407260 - in /trunk: ./ funcs/func_cdr.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 4 10:55:41 CST 2014


Author: mjordan
Date: Tue Feb  4 10:55:39 2014
New Revision: 407260

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=407260
Log:
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

Modified:
    trunk/   (props changed)
    trunk/funcs/func_cdr.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/funcs/func_cdr.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_cdr.c?view=diff&rev=407260&r1=407259&r2=407260
==============================================================================
--- trunk/funcs/func_cdr.c (original)
+++ trunk/funcs/func_cdr.c Tue Feb  4 10:55:39 2014
@@ -293,7 +293,7 @@
 			}
 			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;
 




More information about the svn-commits mailing list