tinySA icon indicating copy to clipboard operation
tinySA copied to clipboard

Saved captures with long names can't be loaded

Open Lathe26 opened this issue 1 year ago • 2 comments

When saving a capture (STORAGE -> SAVE CAPTURE) with name that has 27 characters in it, the final 'p' in '.bmp' is truncated off. This results in STORAGE -> LOAD CAPTURE not being able to see it. For example, when typing in a file name of 0123456789012345678901234567, it will be saved as 0123456789012345678901234567.bm instead of as 0123456789012345678901234567.bmp.

Lathe26 avatar Dec 25 '23 06:12 Lathe26

There is insufficient memory for long file names.

erikkaashoek avatar Jan 09 '24 16:01 erikkaashoek

Understood that there are file name length limits.

However, the off-by-one bug still should be fixed. Just change the max name length from 27 characters to 26 and the bug will be fixed.

Lathe26 avatar Jan 10 '24 04:01 Lathe26