mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 07:04:09 +00:00
parent
c11c3db819
commit
9e38f07c15
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user