mirror of
https://github.com/weechat/weechat.git
synced 2026-06-19 17:44:47 +02:00
core: fix cast of time_t (to "long long" instead of "long") (closes #1051)
This commit is contained in:
@@ -2544,7 +2544,7 @@ weechat_python_api_hook_print_cb (const void *pointer, void *data,
|
||||
|
||||
if (ptr_function && ptr_function[0])
|
||||
{
|
||||
snprintf (timebuffer, sizeof (timebuffer), "%ld", (long int)date);
|
||||
snprintf (timebuffer, sizeof (timebuffer), "%lld", (long long)date);
|
||||
|
||||
func_argv[0] = (ptr_data) ? (char *)ptr_data : empty_arg;
|
||||
func_argv[1] = API_PTR2STR(buffer);
|
||||
|
||||
Reference in New Issue
Block a user