diff options
author | B. Watson <urchlay@slackware.uk> | 2024-06-22 16:15:07 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-06-22 16:15:07 -0400 |
commit | ca7575363e8517c0d409eed2641ed2ba6a523141 (patch) | |
tree | 4c49e03cb1b1b2bce42c3911294922c2e5febf4c | |
parent | 1185226bef2131f4216676d298e7c4e724e8a9bd (diff) | |
download | bw-atari8-tools-ca7575363e8517c0d409eed2641ed2ba6a523141.tar.gz |
protbas: fix WTFery in fixcode().
-rw-r--r-- | unprotbas.c | 2 |
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; |