null terminate empty auto string properly

This commit is contained in:
kipp 1998-06-01 20:55:46 +00:00
parent 85370222ed
commit 38ccae3b3c
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;
}
/*-------------------------------------------------------

View File

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

View File

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

View File

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