[or-cvs] a few minor tweaks
Roger Dingledine
arma at seul.org
Tue Nov 30 08:54:08 UTC 2004
Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common
Modified Files:
util.c
Log Message:
a few minor tweaks
Index: util.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -d -r1.190 -r1.191
--- util.c 30 Nov 2004 03:10:56 -0000 1.190
+++ util.c 30 Nov 2004 08:54:06 -0000 1.191
@@ -316,7 +316,7 @@
int strcasecmpend(const char *s1, const char *s2)
{
size_t n1 = strlen(s1), n2 = strlen(s2);
- if (n2>n1)
+ if (n2>n1) /* then they can't be the same; figure out which is bigger */
return strcasecmp(s1,s2);
else
return strncasecmp(s1+(n1-n2), s2, n2);
More information about the tor-commits
mailing list