null terminate empty auto string properly

This commit is contained in:
kipp 1998-06-01 20:55:46 +00:00
Родитель 54c3c6483d
Коммит d0102a831e
4 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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