From 3904823343c5eece0b5fe217c56059f6f9d67c31 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 24 Nov 2024 17:47:16 +0100 Subject: Fixed a bug in net_send_string(), found by PVS-Studio --- FICS/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FICS') diff --git a/FICS/network.c b/FICS/network.c index 843bef5..1b8f822 100644 --- a/FICS/network.c +++ b/FICS/network.c @@ -302,7 +302,7 @@ net_send_string(int fd, char *str, int format) sendme(which, " ", 8 - (con[which].outPos & 7)); con[which].outPos &= ~7; - if (con[which].outPos += 8 >= LINE_WIDTH) + if ((con[which].outPos += 8) >= LINE_WIDTH) con[which].outPos = 0; break; case '\n': -- cgit v1.2.3