aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-11-30 18:09:53 +0100
committerKim Alvefur <zash@zash.se>2023-11-30 18:09:53 +0100
commit934bd2a65e22e76a32b6a901cc1ca870cf24e047 (patch)
tree0111c2c1265133afe65e7e3083db5a74cc940193
parent7adda6e9389817cc08f5c242e8b2eedf4d728555 (diff)
downloadprosody-934bd2a65e22e76a32b6a901cc1ca870cf24e047.tar.gz
prosody-934bd2a65e22e76a32b6a901cc1ca870cf24e047.zip
util.datamanager: Fix missing pack format when reading first index entry
Thanks MattJ
-rw-r--r--util/datamanager.lua2
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