summaryrefslogtreecommitdiff
path: root/blob.h
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-01-16 03:49:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-01-18 18:18:25 (GMT)
commit60a2e3320f3030d7c1f453a8cadafad7012fd820 (patch)
tree9fa1a38c83a433cf1afa54723afbfe1212fd6218 /blob.h
parent898243b82db862867106854ad10794e74c215e49 (diff)
downloadgit-60a2e3320f3030d7c1f453a8cadafad7012fd820.zip
git-60a2e3320f3030d7c1f453a8cadafad7012fd820.tar.gz
git-60a2e3320f3030d7c1f453a8cadafad7012fd820.tar.bz2
remote-ext: do not segfault for blank lines
Instead of stripping space characters past the beginning of the line and overflowing a buffer, stop at the beginning of the line (mimicking the corresponding fix in remote-fd). The argument to isspace does not need to be cast explicitly because git isspace takes care of that already. Noticed-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions