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>
This commit is contained in:
Anton Lundin 2014-07-10 07:27:09 +02:00 committed by Dirk Hohndel
parent 2ff2daebd7
commit c7df6df8cd

View file

@ -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);