changeset 42:61181373875d

trau-hr-dump: off-by-one error in file end limit
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 12 Sep 2024 21:58:26 +0000
parents b5feb04b212c
children 95acde708ce2
files trau-decode/trau-hr-dump.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/trau-decode/trau-hr-dump.c	Thu Sep 12 21:56:29 2024 +0000
+++ b/trau-decode/trau-hr-dump.c	Thu Sep 12 21:58:26 2024 +0000
@@ -200,7 +200,7 @@
 	int sync = 0, match;
 
 	endp = total_size - 160;
-	for (p = 0; p < endp; ) {
+	for (p = 0; p <= endp; ) {
 		match = check_sync(p);
 		if (match != sync) {
 			printf("# %s frame sync at file offset 0x%x\n",