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:
kipp
1998-06-01 20:55:46 +00:00
parent b26e400397
commit 4e9e60ae79
4 changed files with 4 additions and 0 deletions

View File

@@ -1910,6 +1910,7 @@ nsAutoString::nsAutoString()
mStr = mBuf;
mLength=0;
mCapacity = (sizeof(mBuf) / sizeof(chartype))-sizeof(chartype);
mStr[0] = 0;
}
/*-------------------------------------------------------