From d19e4cebb8efa46d5a198c20affeb88e88085ea4 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(). git-svn-id: svn://10.0.0.236/trunk@41894 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsWellFormedDTD.cpp | 2 +- mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/htmlparser/src/nsWellFormedDTD.cpp b/mozilla/htmlparser/src/nsWellFormedDTD.cpp index 2ecfd90460e..dfd13653e1c 100644 --- a/mozilla/htmlparser/src/nsWellFormedDTD.cpp +++ b/mozilla/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/mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp b/mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp index 2ecfd90460e..dfd13653e1c 100644 --- a/mozilla/parser/htmlparser/src/nsWellFormedDTD.cpp +++ b/mozilla/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; }