1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

Improve Uemis debug output for short data blocks

It's useful to know just how short the read was when trying to figure out
what went wrong.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-11-21 21:42:55 -08:00
parent acb8a0e118
commit 74dd93c6a4

View file

@ -82,7 +82,7 @@ static int uemis_convert_base64(char *base64, uint8_t **data)
datalen = (len / 4 + 1) * 3;
if (datalen < 0x123 + 0x25) {
/* less than header + 1 sample??? */
fprintf(stderr, "suspiciously short data block\n");
fprintf(stderr, "suspiciously short data block %d\n", datalen);
}
*data = malloc(datalen);
if (!*data) {