summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Roberts <braddr@puremagic.com>2005-04-18 02:12:14 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-18 02:12:14 (GMT)
commit74b2428f5573b1f68ce717706296ae7d1832cd65 (patch)
treecd4af5810aa6bd17d9740a8f418c003b559d609e
parentd9f98eebcd31e123e859a4b8c6506bf3f3c4bad6 (diff)
downloadgit-74b2428f5573b1f68ce717706296ae7d1832cd65.zip
git-74b2428f5573b1f68ce717706296ae7d1832cd65.tar.gz
git-74b2428f5573b1f68ce717706296ae7d1832cd65.tar.bz2
[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 <braddr@puremagic.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--commit-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commit-tree.c b/commit-tree.c
index 93f3a57..cbb7d12 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;