mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 04:46:37 +02:00
core: fix cast of time_t (to "long long" instead of "long") (closes #1051)
This commit is contained in:
@@ -1526,8 +1526,8 @@ IRC_COMMAND_CALLBACK(ctcp)
|
||||
{
|
||||
/* generate argument for PING if not provided */
|
||||
gettimeofday (&tv, NULL);
|
||||
snprintf (str_time, sizeof (str_time), "%ld %ld",
|
||||
(long)tv.tv_sec, (long)tv.tv_usec);
|
||||
snprintf (str_time, sizeof (str_time), "%lld %ld",
|
||||
(long long)tv.tv_sec, (long)tv.tv_usec);
|
||||
ctcp_args = str_time;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user