WaveHC: Filenames from SD in array

87? What the hell is 87? Wouldn't
Code:

while(dirBuf.name[actSize] != 0 && dirBuf.name[actSize] != 'W' && dirBuf.name[actSize] != ' ') {

make more sense?

If printed, dirBuf.name[actSize] shows as an int (or uint8_t or whatever).

You CAN call malloc() and use actSize+1 as the size argument, and quit f***ing with actSize.

Ok, did not know that, thanks.

Use a FIXED size array for actFilename. See what that does to your problems.

I did that before the stuff above, it wasn't working either. Depending on the fixed-length, a couple of entries were correct in allFilenames but only emptyness afterwards. So I thought giving actFilename the needed size name per name would be better.