From 9bd683ef351a8ab4522a56f173c39d70e41ed697 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 19 Aug 2015 20:12:16 +0300 Subject: [PATCH] More precise comments Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- liquivision.c | 4 ++-- 1 file 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);