Abort with an error if the buffer is too small
Abort with an error if the buffer is too small

Silently truncating the data packet if the buffer is too small will
result in a corrupt data stream.

henrik242/libdivecomputer,henrik242/libdivecomputer