[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:
Brad Roberts 2005-04-17 19:12:14 -07:00 committed by Linus Torvalds
parent d9f98eebcd
commit 74b2428f55

View file

@ -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;