strlen() doesn't include terminating zero, thus all buffers for files were 1 byte less than necessary, and strcat() wrote outside of the buffer. It resulted in sporadic SEGFAULTs under MS Windows when built with gcc from MinGW.
Log in to post a comment.