Closed hoglet67 closed 2 years ago
I believe this is fixed in https://github.com/SteveFosdick/AcornFsUtils/commit/2e15f31ddf58dd031983a41d96bccdf289942d6a
The issue was actually in the search() function. The calling convention is that when it reports a file as not being found, if the the pointer returned through *ent_ptr is NULL the directory is full, i.e. search had to go right to the end and still didn't find it whereas if the returned pointer is non-NULL it is the correct place to insert the new entry (to keep them sorted). Search was running on too far into the directory footer.
Full seems to be 47 entries.
Here's a stack trace: