mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user