зеркало из https://github.com/microsoft/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 <braddr@puremagic.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
d9f98eebcd
Коммит
74b2428f55
|
@ -83,11 +83,11 @@ static void finish_buffer(char *tag, char **bufp, unsigned int *sizep)
|
||||||
static void remove_special(char *p)
|
static void remove_special(char *p)
|
||||||
{
|
{
|
||||||
char c;
|
char c;
|
||||||
char *dst = p;
|
char *dst = p, *src = p;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
c = *p;
|
c = *src;
|
||||||
p++;
|
src++;
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case '\n': case '<': case '>':
|
case '\n': case '<': case '>':
|
||||||
continue;
|
continue;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче