diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-10 07:27:09 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-10 07:39:20 -0700 |
commit | c7df6df8cd421044a26bad51759dd3b66a5e0bb6 (patch) | |
tree | 497d3c9ac968505e30ee19fdc3609ae6df7afaad /qt-ui | |
parent | 2ff2daebd70907dcd6323371d5842d2bd064d28e (diff) | |
download | subsurface-c7df6df8cd421044a26bad51759dd3b66a5e0bb6.tar.gz |
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 <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-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); |