1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

irc: fix size used in some snprintf

This commit is contained in:
Sebastien Helleu
2014-02-28 11:39:48 +01:00
parent 6ea8c2d83c
commit 82ade05f66
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2000,7 +2000,7 @@ irc_server_send_one_msg (struct t_irc_server *server, int flags,
if (pos)
pos[0] = '\0';
snprintf (buffer, sizeof (buffer) - 1, "%s\r\n", ptr_msg);
snprintf (buffer, sizeof (buffer), "%s\r\n", ptr_msg);
/* anti-flood: look whether we should queue outgoing message or not */
time_now = time (NULL);