# HG changeset patch # User Matt Johnston # Date 1302175115 0 # Node ID 870c635197578ab9a9ce7221f70260a324bb0be7 # Parent 3c5f631358a00994b1de9bfd9a82508a8acc6a8b Change comparison to be more paranoid (and perhaps avoid Klocwork false positive). Does not change behaviour. diff -r 3c5f631358a0 -r 870c63519757 cli-algo.c --- 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; } } diff -r 3c5f631358a0 -r 870c63519757 svr-algo.c --- 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; } }