From 934bd2a65e22e76a32b6a901cc1ca870cf24e047 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 30 Nov 2023 18:09:53 +0100 Subject: util.datamanager: Fix missing pack format when reading first index entry Thanks MattJ --- util/datamanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/datamanager.lua b/util/datamanager.lua index ca77cda8..4269e5d1 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -424,7 +424,7 @@ local function get_list_index(username, host, datastore) end if ih then - local first_length = string.unpack(ih:read(index_item_size)); + local first_length = string.unpack(index_fmt, ih:read(index_item_size)); return setmetatable({ file = ih; { start = 0; length = first_length } }, index_mt); end -- cgit v1.2.3