From c5acba479d47d47b0809d2627f22762e77a7669f Mon Sep 17 00:00:00 2001 From: russell Date: Mon, 26 Dec 2005 18:19:12 +0000 Subject: cast time_t to an int in printf/scanf (issue #5635) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7634 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/res_monitor.c b/res/res_monitor.c index 35366bdf0..08f6b5174 100644 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -150,8 +150,8 @@ int ast_monitor_start( struct ast_channel *chan, const char *format_spec, while((p = strchr(channel_name, '/'))) { *p = '-'; } - snprintf(monitor->filename_base, FILENAME_MAX, "%s/%ld-%s", - ast_config_AST_MONITOR_DIR, time(NULL),channel_name); + snprintf(monitor->filename_base, FILENAME_MAX, "%s/%d-%s", + ast_config_AST_MONITOR_DIR, (int)time(NULL),channel_name); monitor->filename_changed = 1; } else { ast_log(LOG_ERROR,"Failed to allocate Memory\n"); -- cgit v1.2.3