summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2021-07-28 18:55:35 -0700
committerJim Meyering <meyering@fb.com>2021-07-28 18:56:33 -0700
commita9191e5588d6315a6cd248e3c252c9feaf2e1d82 (patch)
tree9ed4db31c60f0b6b689afbc7487bcaf3f5e87491
parent1aa7ccfca49d6e1d41974d4ddc30da9e5fef017e (diff)
downloaddiffutils-a9191e5588d6315a6cd248e3c252c9feaf2e1d82.tar.gz
cmp: revert preceding change
It did not solve the problem. The next patch does.
-rw-r--r--src/cmp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cmp.c b/src/cmp.c
index de67f92..e2d6f25 100644
--- a/src/cmp.c
+++ b/src/cmp.c
@@ -459,8 +459,6 @@ cmp (void)
/* Insert sentinels for the block compare. */
buf0[read0] = ~buf1[read0];
buf1[read1] = ~buf0[read1];
- memset (buf0 + read0 + 1, 0, sizeof (word) - read0 % sizeof (word) - 1);
- memset (buf1 + read1 + 1, 0, sizeof (word) - read1 % sizeof (word) - 1);
first_diff = block_compare (buffer0, buffer1);
}