johnmehr / gitup

A minimalist, dependency-free FreeBSD program to clone/pull Git repositories.
BSD 2-Clause "Simplified" License
50 stars 9 forks source link

Fix memory issues #56

Closed pstef closed 3 years ago

pstef commented 3 years ago

Reserve one byte for the NUL. Don't copy more bytes that have been read.

johnmehr commented 3 years ago

Thank you!