diff --git a/apps/copy.c b/apps/copy.c index b96f7686..5cc312c3 100644 --- a/apps/copy.c +++ b/apps/copy.c @@ -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;