bobbimanners / emailler

Email and Usenet suite for the Apple //e or GS with Uthernet-II ethernet card
http://bobbi.epizy.com
Other
30 stars 5 forks source link

ATTACHER: Filenames in table corrupted!! #38

Closed bobbimanners closed 4 years ago

bobbimanners commented 4 years ago

I think the updated file_ui() code needs to be updated to leave the first part of iobuf[] unchanged.

bobbimanners commented 4 years ago

Here is what I think was happening. iobuf[] was 4096 bytes. FILESPERPAGE is 160 and sizeof(struct tabent) is 21 bytes.

21*160 = 3360 bytes - should be fine right?

However I think cc65 is padding this to 32 bytes. 32*160 = 5120. Ooops.

Increased iobuf[] to 8192 bytes. Should be okay now.