By mistake i used memcpy to "fix" the samples, but the sample list was overlapping so i needed to use memmove.
Signed-off-by: Anton Lundin <[email protected]> --- qt-ui/divelogimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index f9452e8..403438e 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -102,7 +102,7 @@ void DiveLogImportDialog::on_buttonBox_accepted() } /* And the two first samples are "settings" from there software */ - memcpy(dive->dc.sample, dive->dc.sample + 2, sizeof(dive->dc.sample) * dive->dc.samples - 2); + memmove(dive->dc.sample, dive->dc.sample + 2, sizeof(dive->dc.sample) * dive->dc.samples - 2); dive->dc.samples -= 2; memset(dive->dc.sample + dive->dc.samples, 0, sizeof(dive->dc.sample) * 2); -- 1.9.1 _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
