aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/bindump.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2010-01-11 09:26:46 -0900
committerDavid M. Syzdek <david@syzdek.net>2010-01-11 09:26:46 -0900
commitc16910e0e9d8fcd9f952144eb8a36007ff12ed37 (patch)
treec9a512389a7497360622dc082f9b5a534f1a8240 /src/bindump.c
parent93cdf77dc1722a82e1cf3c7da50305122f25362c (diff)
downloaddmstools-c16910e0e9d8fcd9f952144eb8a36007ff12ed37.tar.gz
dmstools-c16910e0e9d8fcd9f952144eb8a36007ff12ed37.tar.bz2
dmstools-c16910e0e9d8fcd9f952144eb8a36007ff12ed37.tar.xz
dmstools-c16910e0e9d8fcd9f952144eb8a36007ff12ed37.zip
Fixing diff logic so the last line is not displayed if both files are the same size.
Diffstat (limited to 'src/bindump.c')
-rw-r--r--src/bindump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bindump.c b/src/bindump.c
index f62f362..437a506 100644
--- a/src/bindump.c
+++ b/src/bindump.c
@@ -523,11 +523,11 @@ size_t my_print_diff(BinDumpFile * file1, BinDumpFile * file2, size_t offset,
523 diff2[s] = 1; 523 diff2[s] = 1;
524 diff2[8] = 1; 524 diff2[8] = 1;
525 }; 525 };
526 } else if (s < max2) { 526 } else if ((s < max2) && (s >= max1)) {
527 diff = 1; 527 diff = 1;
528 diff2[s] = 1; 528 diff2[s] = 1;
529 diff2[8] = 1; 529 diff2[8] = 1;
530 } else { 530 } else if ((s < max1) && (s >= max2)) {
531 diff = 1; 531 diff = 1;
532 diff1[s] = 1; 532 diff1[s] = 1;
533 diff1[8] = 1; 533 diff1[8] = 1;