blob: 1799ad5727f3b00a92219e6d4512c18cbcfdfa52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- gwyddion-2.46/libdraw/gwyselection.c
+++ gwyddion/libdraw/gwyselection.c
@@ -638,7 +638,8 @@
if (nselected) {
g_return_if_fail(data);
- memcpy((gdouble*)selection->objects->data, data, nselected*object_size);
+ gwy_assign((gdouble*)selection->objects->data, data,
+ nselected*object_size);
}
selection->n = nselected;
g_signal_emit(selection, selection_signals[CHANGED], 0, -1);
|