From c7df6df8cd421044a26bad51759dd3b66a5e0bb6 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 10 Jul 2014 07:27:09 +0200 Subject: Fix bug in Seabear Quirks 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index f9452e85d..403438efc 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); -- cgit v1.2.3-70-g09d2