From 78d9fda12f0161f776e2346aa8ef8db9e840e34a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 17 Aug 2011 07:11:06 -0300 Subject: [PATCH] bitcmp/bitcmp.c: fixed fencepost error --- bitcmp/bitcmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcmp/bitcmp.c b/bitcmp/bitcmp.c index 2ed76d4..d4d707e 100644 --- a/bitcmp/bitcmp.c +++ b/bitcmp/bitcmp.c @@ -91,7 +91,7 @@ int main(int argc, char *const *argv) len = got1 < got2 ? got1 : got2; if (!len) break; - for (i = 0; i <= len; i += bytes) { + for (i = 0; i < len; i += bytes) { diff = 0; switch (bytes) { case 4: