fix singsign startup assertion in string class, r=morse

This commit is contained in:
bienvenu%netscape.com 2000-06-11 16:28:53 +00:00
parent ce544548fc
commit 6b30a5ce4b

View File

@ -548,7 +548,7 @@ Local_SACopy(char **destination, const char *source) {
PRIVATE void
si_StripLF(nsAutoString buffer) {
PRUnichar c;
while ((c=buffer.CharAt(buffer.Length())-1) == '\n' || c == '\r' ) {
while ((c=buffer.CharAt(buffer.Length() - 1)) == '\n' || c == '\r' ) {
buffer.SetLength(buffer.Length()-1);
}
}