diff options
author | Pierre Habouzit <madcoder@debian.org> | 2008-03-06 22:28:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-07 13:31:30 -0800 |
commit | c8744d6a8b27115503565041566d97c21e722584 (patch) | |
tree | c070c6bef6f1bc5e1eb3fb4e6f952cfe097f6cdf /commit.c | |
parent | test-lib: fix TERM to dumb for test repeatability (diff) | |
download | tgif-c8744d6a8b27115503565041566d97c21e722584.tar.xz |
unquote_c_style: fix off-by-one.
The optional endp parameter to unquote_c_style() was supposed to point at
a location past the closing double quote, but it was going one beyond it.
git-fast-import used this function heavily and the bug caused it to
misparse the input stream, especially when parsing a rename command:
R "filename that needs quoting" rename-target-name
Because the function erroneously ate the whitespace after the closing dq,
this triggered "Missing space after source" error when it shouldn't.
Thanks to Adeodato Simò for having caught this.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions