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

relay: add cast from time_t to long (fix warning under FreeBSD)

This commit is contained in:
Sebastien Helleu
2012-08-17 11:05:38 +02:00
parent 2485831d4a
commit d5c4f05497
@@ -241,7 +241,7 @@ relay_weechat_msg_add_time (struct t_relay_weechat_msg *msg, time_t time)
char str_time[128];
unsigned char length;
snprintf (str_time, sizeof (str_time), "%ld", time);
snprintf (str_time, sizeof (str_time), "%ld", (long)time);
length = strlen (str_time);
relay_weechat_msg_add_bytes (msg, &length, 1);
relay_weechat_msg_add_bytes (msg, str_time, length);