From fbbfa0c356a76fd2075347654e689bb095fff6e1 Mon Sep 17 00:00:00 2001 From: Yann GASCUEL <34003959+lnv42@users.noreply.github.com> Date: Thu, 25 Jan 2024 08:38:35 +0100 Subject: [PATCH] iso15 JSON dump loading: fix loaded size --- client/src/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/fileutils.c b/client/src/fileutils.c index 5cf6d6e34..1f413c2d8 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -1755,7 +1755,7 @@ int loadFileJSONex(const char *preferredName, void *data, size_t maxdatalen, siz sptr += len; } - *datalen = sptr; + *datalen = sizeof(iso15_tag_t); goto out; }