[or-cvs] fix a signed/unsigned comparison
Roger Dingledine
arma at seul.org
Tue Oct 12 18:32:36 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
routerparse.c
Log Message:
fix a signed/unsigned comparison
Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerparse.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- routerparse.c 12 Oct 2004 15:55:20 -0000 1.47
+++ routerparse.c 12 Oct 2004 18:32:34 -0000 1.48
@@ -1445,7 +1445,7 @@
start = (char *)eat_whitespace(platform+3);
if (!*start) return 0;
s = (char *)find_whitespace(start); /* also finds '\0', which is fine */
- if(s-start+1 >= sizeof(tmp)) /* too big, no */
+ if((size_t)(s-start+1) >= sizeof(tmp)) /* too big, no */
return 0;
strlcpy(tmp, start, s-start+1);
More information about the tor-commits
mailing list