null terminate empty auto string properly
git-svn-id: svn://10.0.0.236/trunk@2847 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1910,6 +1910,7 @@ nsAutoString::nsAutoString()
|
||||
mStr = mBuf;
|
||||
mLength=0;
|
||||
mCapacity = (sizeof(mBuf) / sizeof(chartype))-sizeof(chartype);
|
||||
mStr[0] = 0;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user