Files
pkgsrc-ng/comms/asterisk13/patches/patch-main_pbx.c
2016-11-18 22:39:22 +01:00

14 lines
486 B
C

$NetBSD: patch-main_pbx.c,v 1.2 2016/05/06 07:41:06 jnemeth Exp $
--- main/pbx.c.orig 2016-04-20 10:46:18.000000000 +0000
+++ main/pbx.c
@@ -7973,7 +7973,7 @@ static int testtime_write(struct ast_cha
sscanf(remainder, "%79s", timezone);
tv = ast_mktime(&tm, S_OR(timezone, NULL));
- snprintf(result, sizeof(result), "%ld", (long) tv.tv_sec);
+ snprintf(result, sizeof(result), "%jd", (intmax_t) tv.tv_sec);
pbx_builtin_setvar_helper(chan, "__TESTTIME", result);
return 0;
}