From: Brad Roberts Date: Mon, 18 Apr 2005 02:12:14 +0000 (-0700) Subject: [PATCH] fork optional branch point normazilation X-Git-Tag: v0.99~839 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=74b2428f5573b1f68ce717706296ae7d1832cd65;p=git.git [PATCH] fork optional branch point normazilation Fix remove_specials for real. The second half logic needs the original head of the string. Signed-off-by: Brad Roberts Signed-off-by: Linus Torvalds --- diff --git a/commit-tree.c b/commit-tree.c index 93f3a5799..cbb7d12a8 100644 --- a/commit-tree.c +++ b/commit-tree.c @@ -83,11 +83,11 @@ static void finish_buffer(char *tag, char **bufp, unsigned int *sizep) static void remove_special(char *p) { char c; - char *dst = p; + char *dst = p, *src = p; for (;;) { - c = *p; - p++; + c = *src; + src++; switch(c) { case '\n': case '<': case '>': continue;