From 0ba05cc008086309a96d4af80f828daff523f0ec Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 7 Dec 2011 11:29:12 +0100 Subject: relay: fix constant overflow (on 32-bit systems) in "test" command of weechat protocol --- src/plugins/relay/weechat/relay-weechat-protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c index a0bf98231..56902de0b 100644 --- a/src/plugins/relay/weechat/relay-weechat-protocol.c +++ b/src/plugins/relay/weechat/relay-weechat-protocol.c @@ -264,9 +264,9 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(test) relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_CHAR); relay_weechat_msg_add_char (msg, 'A'); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_INT); - relay_weechat_msg_add_int (msg, 123456789); + relay_weechat_msg_add_int (msg, 123456); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_LONG); - relay_weechat_msg_add_long (msg, 123456789012345L); + relay_weechat_msg_add_long (msg, 1234567890L); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_STRING); relay_weechat_msg_add_string (msg, "a string"); relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_STRING); -- cgit v1.2.3