Use const-pointer

This commit is contained in:
Gerhard Hoffmann 2023-04-18 13:55:46 +02:00
parent f3adba2f0f
commit 1eb2ac3a1d

View File

@ -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';