Revision: 14908
Author: adrian.chadd
Date: Sun Jul 10 18:33:07 2011
Log: Fix from ipv6 branch - memrcmp() was comparing the wrong memory
ranges.
http://code.google.com/p/lusca-cache/source/detail?r=14908
Modified:
/branches/LUSCA_HEAD/lib/util.c
=======================================
--- /branches/LUSCA_HEAD/lib/util.c Wed Jun 9 19:36:31 2010
+++ /branches/LUSCA_HEAD/lib/util.c Sun Jul 10 18:33:07 2011
@@ -744,7 +744,7 @@
int
memrcmp(const void *s1, const void *s2, int n)
{
- const unsigned char *p1 = s1 + n, *p2 = s2 + n;
+ const unsigned char *p1 = s1 + n - 1, *p2 = s2 + n - 1;
if (n == 0)
return (0);
do {
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.