fixed bugs #6622 and #6624

This commit is contained in:
ssu%netscape.com 1999-08-07 00:19:13 +00:00
parent c11c3db819
commit 9e38f07c15

View File

@ -809,7 +809,8 @@ nsInstall::GetComponentFolder(const nsString& aComponentName, const nsString& aS
// characters in the string. ToCString() requires the
// total number of characters in the string to copy,
// therefore add 1 to it.
dirStr.ToCString(dir, i + 1);
dirStr.Truncate(i + 1);
dirStr.ToCString(dir, MAXREGPATHLEN);
}
}
else