diff options
Diffstat (limited to 'academic/gwyddion/gwyddion-2.46-selection-set-data.patch')
-rw-r--r-- | academic/gwyddion/gwyddion-2.46-selection-set-data.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/academic/gwyddion/gwyddion-2.46-selection-set-data.patch b/academic/gwyddion/gwyddion-2.46-selection-set-data.patch new file mode 100644 index 0000000000..1799ad5727 --- /dev/null +++ b/academic/gwyddion/gwyddion-2.46-selection-set-data.patch @@ -0,0 +1,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); |