From 67b7366c778ee19acbd87f5a95921ec535717d00 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Tue, 3 Aug 1999 00:12:22 +0000 Subject: [PATCH] Hardcoding PI length in GetProcessingInstruction(). --- htmlparser/src/nsWellFormedDTD.cpp | 2 +- parser/htmlparser/src/nsWellFormedDTD.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htmlparser/src/nsWellFormedDTD.cpp b/htmlparser/src/nsWellFormedDTD.cpp index 2ecfd90460e1..dfd13653e1c2 100644 --- a/htmlparser/src/nsWellFormedDTD.cpp +++ b/htmlparser/src/nsWellFormedDTD.cpp @@ -453,7 +453,7 @@ void GetProcessingInstruction(const nsString& aPIString, char* a_PI) nsString temp; PRInt32 theOffset = aPIString.FindCharInSet(theWS2,1); aPIString.Mid(temp,1,theOffset); - temp.ToCString(a_PI,temp.Length()); + temp.ToCString(a_PI,30); } return; } diff --git a/parser/htmlparser/src/nsWellFormedDTD.cpp b/parser/htmlparser/src/nsWellFormedDTD.cpp index 2ecfd90460e1..dfd13653e1c2 100644 --- a/parser/htmlparser/src/nsWellFormedDTD.cpp +++ b/parser/htmlparser/src/nsWellFormedDTD.cpp @@ -453,7 +453,7 @@ void GetProcessingInstruction(const nsString& aPIString, char* a_PI) nsString temp; PRInt32 theOffset = aPIString.FindCharInSet(theWS2,1); aPIString.Mid(temp,1,theOffset); - temp.ToCString(a_PI,temp.Length()); + temp.ToCString(a_PI,30); } return; }