aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-27 16:33:43 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-27 16:33:43 -0400
commit9c8eabfffed88e6f7645106d9067af759f6dbe94 (patch)
tree5c3af71def45b4c04b9b09016868c8dbb1d9bc33
parenta1fe7b51bd364c309f1f1a79e57653f0e67307d4 (diff)
downloadbw-atari8-tools-9c8eabfffed88e6f7645106d9067af759f6dbe94.tar.gz
unprotbas: print correct offset.
-rw-r--r--unprotbas.c2
1 files changed, 1 insertions, 1 deletions
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++;
}