aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-24 17:47:16 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-24 17:47:16 +0100
commit3904823343c5eece0b5fe217c56059f6f9d67c31 (patch)
tree3751c34a50195fd6659ba954388bb2d4b28f8402
parent586861e004c58c1acd8cf9c6c982d42aa8a2d723 (diff)
Fixed a bug in net_send_string(), found by PVS-Studio
-rw-r--r--FICS/network.c2
1 files changed, 1 insertions, 1 deletions
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':