mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 12:16:34 +00:00
Silent some compilation warnings (Fixes Issue 145)
This commit is contained in:
@@ -87,7 +87,7 @@ target_io( nfc_target_t * pnt, const byte_t * pbtInput, const size_t szInput, by
|
||||
case 0x30: // Mifare read
|
||||
// block address is in pbtInput[1]
|
||||
*pszOutput = 15;
|
||||
strcpy(pbtOutput, "You read block ");
|
||||
strcpy((char*)pbtOutput, "You read block ");
|
||||
pbtOutput[15] = pbtInput[1];
|
||||
break;
|
||||
case 0x50: // Deselect / HALT
|
||||
|
||||
@@ -113,10 +113,14 @@ write_card (void)
|
||||
bool write_lock;
|
||||
|
||||
printf ("Write OTP bytes ? [yN] ");
|
||||
fgets (buffer, BUFSIZ, stdin);
|
||||
if (!fgets (buffer, BUFSIZ, stdin)) {
|
||||
ERR ("Unable to read standard input.");
|
||||
}
|
||||
write_otp = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
|
||||
printf ("Write Lock bytes ? [yN] ");
|
||||
fgets (buffer, BUFSIZ, stdin);
|
||||
if (!fgets (buffer, BUFSIZ, stdin)) {
|
||||
ERR ("Unable to read standard input.");
|
||||
}
|
||||
write_lock = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
|
||||
|
||||
printf ("Writing %d pages |", uiBlocks + 1);
|
||||
|
||||
Reference in New Issue
Block a user