mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 13:45:27 +00:00
Bug 907539: Use sizeof(PRUnichar) instead of magic number 2, when converting from bytes to wide-string-length in nsCheapString constructor. r=ehsan
This commit is contained in:
parent
f9b077c0c8
commit
ab58b5ad66
@ -63,7 +63,7 @@ public:
|
||||
nsCheapString(nsStringBuffer* aBuf)
|
||||
{
|
||||
if (aBuf)
|
||||
aBuf->ToString(aBuf->StorageSize()/2 - 1, *this);
|
||||
aBuf->ToString(aBuf->StorageSize()/sizeof(PRUnichar) - 1, *this);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user