Closed jbenc closed 3 years ago
The returned string may contain a '\0' character. Although not common, it can happen e.g. in the diff output. Instead of truncating the output on the null character, use the returned size from git_buf.
Fixes #1043
The returned string may contain a '\0' character. Although not common, it can happen e.g. in the diff output. Instead of truncating the output on the null character, use the returned size from git_buf.
Fixes #1043