diff options
| author | David M. Syzdek <david@syzdek.net> | 2010-01-14 13:38:58 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2010-01-14 13:38:58 -0900 |
| commit | 0dc53a9f7f1affa1c5542f9f97e92291c138fe29 (patch) | |
| tree | 524e5a168b8cf34f15142c82e55ee5511fee7158 /src/bindump.c | |
| parent | b1cd0c8d32bf9f50045135c0b3f16ee7dc2f34ff (diff) | |
| download | dmstools-0dc53a9f7f1affa1c5542f9f97e92291c138fe29.tar.gz dmstools-0dc53a9f7f1affa1c5542f9f97e92291c138fe29.tar.bz2 dmstools-0dc53a9f7f1affa1c5542f9f97e92291c138fe29.tar.xz dmstools-0dc53a9f7f1affa1c5542f9f97e92291c138fe29.zip | |
Showing both lines if not the same len in bindump
Updating bindump to display both lines when
performing a diff on two files if the difference between the two lines is a result of length.
Diffstat (limited to 'src/bindump.c')
| -rw-r--r-- | src/bindump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bindump.c b/src/bindump.c index adc53de..3cb5fd9 100644 --- a/src/bindump.c +++ b/src/bindump.c | |||
| @@ -537,10 +537,14 @@ size_t my_print_diff(BinDumpFile * file1, BinDumpFile * file2, size_t offset, | |||
| 537 | diff = 1; | 537 | diff = 1; |
| 538 | diff2[s] = 1; | 538 | diff2[s] = 1; |
| 539 | diff2[8] = 1; | 539 | diff2[8] = 1; |
| 540 | if (max1) | ||
| 541 | diff1[8] = 1; | ||
| 540 | } else if (s < max1) { | 542 | } else if (s < max1) { |
| 541 | diff = 1; | 543 | diff = 1; |
| 542 | diff1[s] = 1; | 544 | diff1[s] = 1; |
| 543 | diff1[8] = 1; | 545 | diff1[8] = 1; |
| 546 | if (max2) | ||
| 547 | diff2[8] = 1; | ||
| 544 | }; | 548 | }; |
| 545 | }; | 549 | }; |
| 546 | 550 | ||
