summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-09-06 20:16:29 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-09-06 20:16:29 (GMT)
commitc5502f2f5dd95ce494975824aee1679f3a09bf5a (patch)
tree5b2aead00d7aa1d1f58179529755bfa1758a821c /compat
parentb3a92466edc62aac6675f88d7a04e3d2e0494cfe (diff)
downloadtcl-c5502f2f5dd95ce494975824aee1679f3a09bf5a.zip
tcl-c5502f2f5dd95ce494975824aee1679f3a09bf5a.tar.gz
tcl-c5502f2f5dd95ce494975824aee1679f3a09bf5a.tar.bz2
Fixed obvious stupid error. [Bug 1786647]
Diffstat (limited to 'compat')
-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);