changeset 611:870c63519757

Change comparison to be more paranoid (and perhaps avoid Klocwork false positive). Does not change behaviour.
author Matt Johnston <matt@ucc.asn.au>
date Thu, 07 Apr 2011 11:18:35 +0000
parents 3c5f631358a0
children 1aee049681bd
files cli-algo.c svr-algo.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cli-algo.c	Thu Apr 07 11:14:22 2011 +0000
+++ b/cli-algo.c	Thu Apr 07 11:18:35 2011 +0000
@@ -67,7 +67,7 @@
 			remotealgos[count] = &algolist[i+1];
 			count++;
 		}
-		if (count == MAX_PROPOSED_ALGO) {
+		if (count >= MAX_PROPOSED_ALGO) {
 			break;
 		}
 	}
--- a/svr-algo.c	Thu Apr 07 11:14:22 2011 +0000
+++ b/svr-algo.c	Thu Apr 07 11:18:35 2011 +0000
@@ -68,7 +68,7 @@
 			remotealgos[count] = &algolist[i+1];
 			count++;
 		}
-		if (count == MAX_PROPOSED_ALGO) {
+		if (count >= MAX_PROPOSED_ALGO) {
 			break;
 		}
 	}