Fix for crash in debug mode in macos when reading windows style line ending

Fix for crash in debug mode in macos when reading windows stlye line ending

  • remove_cr() utilizes strcpy with overlapped memory
  • strcpy with overlapping buffers results in undefined behavior in C
  • Entire buffer movement is needlessly expensive
  • Fix ensures a copy with a skip for carriage returns

Merge request reports

Loading