When listing directories, the buffer[cBufferSize] is used and reused without zeroing out. There seem to be some cases where the null terminator isn't caught when converting to NSString. Best to zero out the buffer on each loop or allocate the NSString with a fixed length (from result)
When listing directories, the buffer[cBufferSize] is used and reused without zeroing out. There seem to be some cases where the null terminator isn't caught when converting to NSString. Best to zero out the buffer on each loop or allocate the NSString with a fixed length (from result)