[PATCH 1/2] More precise comments

Miika Turkia miika.turkia at gmail.com
Wed Aug 19 10:12:16 PDT 2015


Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 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



More information about the subsurface mailing list