remote-ext: do not segfault for blank lines
authorJonathan Nieder <redacted>
Sun, 16 Jan 2011 03:49:40 +0000 (21:49 -0600)
committerJunio C Hamano <redacted>
Tue, 18 Jan 2011 18:18:25 +0000 (10:18 -0800)
commit60a2e3320f3030d7c1f453a8cadafad7012fd820
tree9fa1a38c83a433cf1afa54723afbfe1212fd6218
parent898243b82db862867106854ad10794e74c215e49
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 <redacted>
Signed-off-by: Jonathan Nieder <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/remote-ext.c
git clone https://git.99rst.org/PROJECT