[svn-commits] mjordan: branch 12 r407259 - /branches/12/funcs/func_cdr.c

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


Author: mjordan
Date: Tue Feb  4 10:54:21 2014
New Revision: 407259

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

Modified:
    branches/12/funcs/func_cdr.c

Modified: branches/12/funcs/func_cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/funcs/func_cdr.c?view=diff&rev=407259&r1=407258&r2=407259
==============================================================================
--- branches/12/funcs/func_cdr.c (original)
+++ branches/12/funcs/func_cdr.c Tue Feb  4 10:54:21 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