diff trau-decode/trau-hr-dump.c @ 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 9bcdb091c24d
children
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",