diff options
Diffstat (limited to 'qt-ui/divelogimportdialog.cpp')
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |