summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2007-09-06 20:16:29 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2007-09-06 20:16:29 (GMT)
commit921252fa78b89bd4ca4282710d27735ceb755a42 (patch)
tree5b2aead00d7aa1d1f58179529755bfa1758a821c
parent71091b124ff2de34d533cebcac795ba6cfd431b0 (diff)
downloadtcl-921252fa78b89bd4ca4282710d27735ceb755a42.zip
tcl-921252fa78b89bd4ca4282710d27735ceb755a42.tar.gz
tcl-921252fa78b89bd4ca4282710d27735ceb755a42.tar.bz2
Fixed obvious stupid error. [Bug 1786647]
-rw-r--r--compat/memcmp.c2
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);