From 7e9d3e8571b81c1af05e315eafc8bd48286daab8 Mon Sep 17 00:00:00 2001 From: James Clark Date: Sun, 8 Feb 1998 08:08:44 +0000 Subject: [PATCH] Fix bug in normalizing CRs in PIs --- expat/xmlparse/xmlparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/xmlparse/xmlparse.c b/expat/xmlparse/xmlparse.c index 1b371041..ecacce7e 100755 --- a/expat/xmlparse/xmlparse.c +++ b/expat/xmlparse/xmlparse.c @@ -1336,8 +1336,9 @@ normalizeLines(char *s) s++; } else - *s++ = *p++; + *p++ = *s++; } + *p = '\0'; } static int