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:
akkana%netscape.com 1999-04-21 00:17:12 +00:00
Родитель 94ede38cea
Коммит eab41c6d3c
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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");