Skip to content

Commit

Permalink
Merge pull request #209 from eduardocasino/copy-fix
Browse files Browse the repository at this point in the history
Harmless copy.c bug: Fail if no files match
  • Loading branch information
davidgiven authored Jan 8, 2025
2 parents cf483c8 + cce3af7 commit 8998fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ int main()
i = cpm_findnext(&wildcard_fcb);
}

if (stash == (FCB*)cpm_ram)
if (stash == (FCB*)top)
fatal("no files match");
buffer_size = ((uint16_t)stash - (uint16_t)cpm_ram) / 128;

Expand Down

0 comments on commit 8998fae

Please sign in to comment.