summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-13 06:53:27 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-13 07:54:43 (GMT)
commit883653babd8ee7ea23e6a5c392bb739348b1eb61 (patch)
treedae67a63b5f2398f1aaccebd83dee3c99d6da30a /pack.h
parent60a6bf5f53635005f4f68d8b8a33172309193623 (diff)
downloadgit-1.4.2.1.zip
git-1.4.2.1.tar.gz
git-1.4.2.1.tar.bz2
http-fetch: fix alternates handling.v1.4.2.1
Fetch over http from a repository that uses alternates to borrow from neighbouring repositories were quite broken, apparently for some time now. We parse input and count bytes to allocate the new buffer, and when we copy into that buffer we know exactly how many bytes we want to copy from where. Using strlcpy for it was simply stupid, and the code forgot to take it into account that strlcpy terminated the string with NUL. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack.h')
0 files changed, 0 insertions, 0 deletions