Mercurial > dropbear
comparison cli-algo.c @ 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 | 0cfba3034be5 |
children | 3062da90dab8 |
comparison
equal
deleted
inserted
replaced
610:3c5f631358a0 | 611:870c63519757 |
---|---|
65 if (algolist[i] == ',') { | 65 if (algolist[i] == ',') { |
66 algolist[i] = '\0'; | 66 algolist[i] = '\0'; |
67 remotealgos[count] = &algolist[i+1]; | 67 remotealgos[count] = &algolist[i+1]; |
68 count++; | 68 count++; |
69 } | 69 } |
70 if (count == MAX_PROPOSED_ALGO) { | 70 if (count >= MAX_PROPOSED_ALGO) { |
71 break; | 71 break; |
72 } | 72 } |
73 } | 73 } |
74 | 74 |
75 /* iterate and find the first match */ | 75 /* iterate and find the first match */ |