X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnetutl.c;h=ea4839f077b984fc4ddc474dfb41bef32933aee2;hp=2ad30fc6b057458b6a5ea5fd64975ec047a09fc2;hb=e8e69460a7090aaf6ecda8970d3060695de81b00;hpb=ed509312906625acee4007da6262de3898846888 diff --git a/src/netutl.c b/src/netutl.c index 2ad30fc6..ea4839f0 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: netutl.c,v 1.12.4.24 2002/02/18 16:25:16 guus Exp $ + $Id: netutl.c,v 1.12.4.25 2002/02/20 17:15:33 guus Exp $ */ #include "config.h" @@ -165,7 +165,7 @@ int maskcmp(char *a, char *b, int masklen, int len) { int i, m, result; cp - for(m = masklen, i = 0; m > 8; m -= 8, i++) + for(m = masklen, i = 0; m >= 8; m -= 8, i++) if((result = a[i] - b[i])) return result; @@ -193,7 +193,7 @@ void maskcpy(char *a, char *b, int masklen, int len) { int i, m; cp - for(m = masklen, i = 0; m > 8; m -= 8, i++) + for(m = masklen, i = 0; m >= 8; m -= 8, i++) a[i] = b[i]; if(m)