mirror of
https://github.com/git/git.git
synced 2024-11-17 14:34:49 +01:00
4a393f2b53
If we read the maximum size of our buffer into $buf, and the last character is '\015', there's a chance that the character is '\012', which means our regex won't work correctly. At the worst case, this could introduce an extra newline into the code. We'll now read an extra character if we see '\015' is the last character in $buf. We also forgot to recalculate the length of $buf after doing the newline substitution, causing some files to appeare truncated. We'll do that now and force byte semantics in length() for good measure. Signed-off-by: Eric Wong <normalperson@yhbt.net> |
||
---|---|---|
.. | ||
t | ||
.gitignore | ||
git-svn.perl | ||
git-svn.txt | ||
Makefile |