From 9c8eabfffed88e6f7645106d9067af759f6dbe94 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 27 May 2024 16:33:43 -0400 Subject: unprotbas: print correct offset. --- unprotbas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unprotbas.c') diff --git a/unprotbas.c b/unprotbas.c index c458e9f..efc1b2f 100644 --- a/unprotbas.c +++ b/unprotbas.c @@ -200,7 +200,7 @@ int fixcode(void) { offset = data[pos + 2]; /* fprintf(stderr, "pos %d, line #%d, offset %d\n", pos, lineno, offset); */ if(offset < 6) { - if(verbose) fprintf(stderr, "Found invalid offset %d (<6) at line %d, file offset %04x\n", offset, lineno, pos); + if(verbose) fprintf(stderr, "Found invalid offset %d (<6) at line %d, file offset %04x\n", offset, lineno, pos + 2); offset += fixline(pos); result++; } -- cgit v1.2.3