Fix a buffer overflow.
Fix a buffer overflow.

The 6 byte logbook entry gets prepended to the profile data. We need to
take this into account when allocating the memory buffer. Under normal
circumstances this shouldn't be a problem, because a single dive is
usually much smaller than the profile ringbuffer. But it's better to be
on the safe side.

glance-/libdivecomputer,Poltsi/libdivecomputer-vms,glance-/libdivecomputer,henrik242/libdivecomputer,henrik242/libdivecomputer