diff options
author | Kim Alvefur <zash@zash.se> | 2023-11-30 18:09:53 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-11-30 18:09:53 +0100 |
commit | 934bd2a65e22e76a32b6a901cc1ca870cf24e047 (patch) | |
tree | 0111c2c1265133afe65e7e3083db5a74cc940193 | |
parent | 7adda6e9389817cc08f5c242e8b2eedf4d728555 (diff) | |
download | prosody-934bd2a65e22e76a32b6a901cc1ca870cf24e047.tar.gz prosody-934bd2a65e22e76a32b6a901cc1ca870cf24e047.zip |
util.datamanager: Fix missing pack format when reading first index entry
Thanks MattJ
-rw-r--r-- | util/datamanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |