mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
fixing bug 60739 r=blizzard sr=shaver
This commit is contained in:
parent
203cad2e8b
commit
e29100a3dc
@ -921,6 +921,8 @@ void nsClipboard::SelectionGetCB(GtkWidget *widget,
|
||||
nsCOMPtr<nsICharsetConverterManager> ccm = do_GetService(NS_CHARSETCONVERTERMANAGER_CONTRACTID, &rv);
|
||||
rv = ccm->GetUnicodeEncoder(&platformCharset, getter_AddRefs(encoder));
|
||||
|
||||
encoder->SetOutputErrorBehavior(nsIUnicodeEncoder::kOnError_Replace, nsnull, '?');
|
||||
|
||||
// Estimate out length and allocate the buffer based on a worst-case estimate, then do
|
||||
// the conversion.
|
||||
PRUnichar *castedData = NS_REINTERPRET_CAST(PRUnichar*, clipboardData);
|
||||
|
Loading…
Reference in New Issue
Block a user