From 65862405aa4bdb4c4bfdb2398efd358e9de74612 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 29 Dec 2017 14:41:35 +0000 Subject: [PATCH] writer: Correctly increase offset when writing ASes Signed-off-by: Michael Tremer --- src/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writer.c b/src/writer.c index 8c6ed88..6427d47 100644 --- a/src/writer.c +++ b/src/writer.c @@ -211,7 +211,7 @@ static int loc_database_write_as_section(struct loc_writer* writer, loc_as_to_database_v0(writer->as[i], &as); // Write to disk - offset += fwrite(&as, 1, sizeof(as), f); + *offset += fwrite(&as, 1, sizeof(as), f); as_length += sizeof(as); } -- 2.39.2