aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-06-22 16:15:07 -0400
committerB. Watson <urchlay@slackware.uk>2024-06-22 16:15:07 -0400
commitca7575363e8517c0d409eed2641ed2ba6a523141 (patch)
tree4c49e03cb1b1b2bce42c3911294922c2e5febf4c
parent1185226bef2131f4216676d298e7c4e724e8a9bd (diff)
downloadbw-atari8-tools-ca7575363e8517c0d409eed2641ed2ba6a523141.tar.gz
protbas: fix WTFery in fixcode().
-rw-r--r--unprotbas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unprotbas.c b/unprotbas.c
index 3c53492..ae01b50 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -97,7 +97,7 @@ int fixcode(void) {
/* 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);
- offset += fixline(pos);
+ offset = fixline(pos);
result++;
}
pos += offset;