summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-09-14 14:21:47 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-09-14 14:21:47 +0100
commit8f0d0a3138e138ffa6bcc94c8378f5eb22573f0e (patch)
treec9edb0df8f21838d26d0c29662d03613d11dd545 /src
parent48505c2b8095289f1226fe9a9fc63d4bcb387c87 (diff)
DCC: fix loop expression
Diffstat (limited to 'src')
-rw-r--r--src/src/dcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/dcc.c b/src/src/dcc.c
index fe2e1340f..fb32fef6a 100644
--- a/src/src/dcc.c
+++ b/src/src/dcc.c
@@ -333,7 +333,7 @@ while((dcc_resplen = read(sockfd, big_buffer, big_buffer_size-1)) > 0)
"DCC: -----------------------------------\n", dcc_resplen, dcc_resplen, big_buffer);
/* Now let's read each character and see what we've got */
- for(bufoffset = 0; bufoffset < dcc_resplen, line <= 2; bufoffset++)
+ for(bufoffset = 0; bufoffset < dcc_resplen && line <= 2; bufoffset++)
{
/* First check if we reached the end of the line and
then increment the line counter */