From 921252fa78b89bd4ca4282710d27735ceb755a42 Mon Sep 17 00:00:00 2001 From: "donal.k.fellows@manchester.ac.uk" Date: Thu, 6 Sep 2007 20:16:29 +0000 Subject: Fixed obvious stupid error. [Bug 1786647] --- compat/memcmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/memcmp.c b/compat/memcmp.c index b1c12a9..8bb7e39 100644 --- a/compat/memcmp.c +++ b/compat/memcmp.c @@ -52,7 +52,7 @@ memcmp(s1, s2, n) CONST unsigned char *ptr2 = (CONST unsigned char *) s2; for ( ; n-- ; ptr1++, ptr2++) { - unsigned char u1 = *s1, u2 = *s2; + unsigned char u1 = *ptr1, u2 = *ptr2; if ( u1 != u2) { return (u1-u2); -- cgit v0.12