1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-22 02:46:38 +02:00

Fix compilation warning with snprintf of time_t (long int) on FreeBSD

This commit is contained in:
Sebastien Helleu
2008-05-14 14:53:02 +02:00
parent 673e4ad3be
commit 3c7205aab1
4 changed files with 4 additions and 4 deletions
@@ -2257,7 +2257,7 @@ weechat_python_api_hook_print_cb (void *data, struct t_gui_buffer *buffer,
script_callback = (struct t_script_callback *)data;
snprintf (timebuffer, sizeof (timebuffer) - 1, "%ld", date);
snprintf (timebuffer, sizeof (timebuffer) - 1, "%ld", (long int)date);
python_argv[0] = script_ptr2str (buffer);
python_argv[1] = timebuffer;