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:
parent
acb8a0e118
commit
74dd93c6a4
1 changed files with 1 additions and 1 deletions
2
uemis.c
2
uemis.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue