mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
[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>
This commit is contained in:
parent
d9f98eebcd
commit
74b2428f55
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user