зеркало из https://github.com/mozilla/pjs.git
Remove correction subtracting 1 from transferable data length on copy;
tracking rods' change removing bogus extra byte in XIF format converter.
This commit is contained in:
Родитель
94ede38cea
Коммит
eab41c6d3c
|
@ -515,10 +515,7 @@ void nsClipboard::SelectionGetCB(GtkWidget *widget,
|
|||
gtk_selection_data_set(aSelectionData,
|
||||
GDK_SELECTION_TYPE_STRING, 8,
|
||||
(unsigned char *)clipboardData,
|
||||
dataLength-1);
|
||||
// Need to subtract one from dataLength, passed in from the transferable,
|
||||
// to avoid getting a bogus null char.
|
||||
// the format arg, "8", indicates string data with no endianness
|
||||
dataLength);
|
||||
}
|
||||
else
|
||||
printf("Transferable didn't support the data flavor\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче