diff options
-rw-r--r-- | liquivision.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/liquivision.c b/liquivision.c index 957e7ccf9..91e0277fb 100644 --- a/liquivision.c +++ b/liquivision.c @@ -387,9 +387,9 @@ int try_to_open_liquivision(const char *filename, struct memblock *mem) unsigned int ptr; int log_version; - // Get name + // Get name length unsigned int len = array_uint32_le(buf); - // Ignore name + // Ignore length field and the name ptr = 4 + len; unsigned int dive_count = array_uint32_le(buf + ptr); |