summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-30 08:54:08 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-30 08:54:08 +0000
commit7a8c1ca1e4f6c4cc3a6b0f70fe036986ccd61a39 (patch)
tree757148d08b57ed923c25323691be970bff2b2502 /src/common/util.c
parent19ada3f7facbfc37e777f25753195c19d57fc3d9 (diff)
downloadtor-7a8c1ca1e4f6c4cc3a6b0f70fe036986ccd61a39.tar.gz
tor-7a8c1ca1e4f6c4cc3a6b0f70fe036986ccd61a39.zip
a few minor tweaks
svn:r3041
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index efc320215d..678ae3bd52 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -316,7 +316,7 @@ int strcmpend(const char *s1, const char *s2)
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);