summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c2116a1)
raw | patch | inline | side by side (parent: c2116a1)
author | Pierre Habouzit <madcoder@debian.org> | |
Thu, 6 Mar 2008 21:28:19 +0000 (22:28 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Mar 2008 21:31:30 +0000 (13:31 -0800) |
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>
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>
quote.c | patch | blob | history |