]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Increase the linebuf length to fit a full message including tags.
authorSadie Powell <redacted>
Mon, 23 Aug 2021 22:00:07 +0000 (23:00 +0100)
committerPatrick <redacted>
Tue, 24 Aug 2021 21:40:54 +0000 (16:40 -0500)
src/common/hexchat.h

index 5c9949a291ff2ba83c90e103d6d624fe09ea7234..43a5f43a4a01d987cf98c112f8d2b8ec768e544b 100644 (file)
@@ -503,7 +503,7 @@ typedef struct server
        char servername[128];                   /* what the server says is its name */
        char password[86];
        char nick[NICKLEN];
-       char linebuf[2048];                             /* RFC says 512 chars including \r\n */
+       char linebuf[8704];                             /* RFC says 512 chars including \r\n, IRCv3 message tags add 8191, plus the NUL byte */
        char *last_away_reason;
        int pos;                                                                /* current position in linebuf */
        int nickcount;