mirror of
https://github.com/raysan5/raylib.git
synced 2026-09-14 01:50:50 +00:00
The copy loop filled all MAX_TEXT_BUFFER_LENGTH bytes, so the last substring could come back with no terminator, and a delimiter on the last byte made buffers[] point one past the end of the array. Stop one byte earlier so the zero left by the memset() at the top of the function always terminates the last substring.