diff --git a/htmlparser/src/nsParser.cpp b/htmlparser/src/nsParser.cpp
index 0e14f79e2bc..d7ca9fd97cd 100644
--- a/htmlparser/src/nsParser.cpp
+++ b/htmlparser/src/nsParser.cpp
@@ -424,7 +424,7 @@ eParseMode DetermineParseMode(nsParser& aParser) {
if(theScanner){
nsString theBufCopy;
nsString& theBuffer=theScanner->GetBuffer();
- theBuffer.Left(theBufCopy,300);
+ theBuffer.Left(theBufCopy,125);
theBufCopy.ToUpperCase();
PRInt32 theIndex=theBufCopy.Find("GetBuffer();
- theBuffer.Left(theBufCopy,300);
+ theBuffer.Left(theBufCopy,125);
theBufCopy.ToUpperCase();
PRInt32 theIndex=theBufCopy.Find("