From 4708940c69090e9eaf01d6448f74821f0267dbab Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 3 Nov 2023 01:46:42 +0100 Subject: [PATCH] wrong struct when pasting --- 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 79a9680f0..9d97b9831 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -446,7 +446,7 @@ int saveFileJSONex(const char *preferredName, JSONFileType ftype, uint8_t *data, uint8_t pagemap = get_pagemap(&hdr); if (pagemap == PICOPASS_NON_SECURE_PAGEMODE) { picopass_ns_hdr_t ns_hdr; - memcpy(&ns_hdr, data, sizeof(picopass_hdr_t)); + memcpy(&ns_hdr, data, sizeof(picopass_ns_hdr_t)); JsonSaveBufAsHexCompact(root, "$.Card.AIA", ns_hdr.app_issuer_area, sizeof(ns_hdr.app_issuer_area)); } else { JsonSaveBufAsHexCompact(root, "$.Card.Epurse", hdr.epurse, sizeof(hdr.epurse));