Fix an infinite loop in sq_quote_buf().
commitc2015b3ae0d52ccae33ee00c2b25b8402c66bdf0
authorJohannes Sixt <johannes.sixt@telecom.at>
Sun, 4 Nov 2007 20:26:22 +0000 (4 21:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 4 Nov 2007 23:16:59 +0000 (4 15:16 -0800)
tree89cbc34d7def468e193b431bacb07c88d305cb9a
parent140dd77a5cb2e61dcb942e245a2474fae95e42a5
Fix an infinite loop in sq_quote_buf().

sq_quote_buf() treats single-quotes and exclamation marks specially, but
it incorrectly parsed the input for single-quotes and backslashes.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
quote.c
t/t5510-fetch.sh