From 1eb2ac3a1df01a7af3244f6fe495a8b143d946bf Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 18 Apr 2023 13:55:46 +0200 Subject: [PATCH] Use const-pointer --- src/storeINdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storeINdata.cpp b/src/storeINdata.cpp index 0f70597..0c14c94 100644 --- a/src/storeINdata.cpp +++ b/src/storeINdata.cpp @@ -954,7 +954,7 @@ uint8_t epi_restoreMifData(uint8_t blkNr, uint8_t *buf, uint8_t maxBufferSize) { return 0; // ois OK } -void gpi_storeNewMifareCard(uint8_t typ, uint8_t *holder) { +void gpi_storeNewMifareCard(uint8_t typ, uint8_t const *holder) { SharedMemBuffer::getData()->mif_cardType = typ; strncpy((char *)holder, (char *)SharedMemBuffer::getData()->mif_cardHolder, 7); SharedMemBuffer::getData()->mif_cardHolder[7] = '\0';