[exim-cvs] DCC: fix loop expression

Pàgina inicial
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
A: exim-cvs
Assumpte: [exim-cvs] DCC: fix loop expression
Gitweb: https://git.exim.org/exim.git/commitdiff/8f0d0a3138e138ffa6bcc94c8378f5eb22573f0e
Commit:     8f0d0a3138e138ffa6bcc94c8378f5eb22573f0e
Parent:     48505c2b8095289f1226fe9a9fc63d4bcb387c87
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Tue Sep 14 14:21:47 2021 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Tue Sep 14 14:21:47 2021 +0100


    DCC: fix loop expression
---
 src/src/dcc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/src/dcc.c b/src/src/dcc.c
index fe2e134..fb32fef 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 */