erikkaashoek / tinySA

tiny Spectrum Analyzer
227 stars 52 forks source link

Saved captures with long names can't be loaded #90

Open Lathe26 opened 11 months ago

Lathe26 commented 11 months ago

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.

erikkaashoek commented 10 months ago

There is insufficient memory for long file names.

Lathe26 commented 10 months ago

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.