Signed-off-by: Miika Turkia <[email protected]>
---
 liquivision.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/liquivision.c b/liquivision.c
index 957e7cc..91e0277 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);
-- 
2.1.4

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to