diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/memcmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |