projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9f98ee
)
[PATCH] fork optional branch point normazilation
author
Brad Roberts
<braddr@puremagic.com>
Mon, 18 Apr 2005 02:12:14 +0000
(19:12 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Mon, 18 Apr 2005 02:12:14 +0000
(19:12 -0700)
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>
commit-tree.c
patch
|
blob
|
history
diff --git
a/commit-tree.c
b/commit-tree.c
index
93f3a57
..
cbb7d12
100644
(file)
--- 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;