improve comment

This commit is contained in:
Henry Gabryjelski 2025-01-10 17:07:17 -08:00
commit 05319463fb

View file

@ -3235,7 +3235,7 @@ int CmdHF14ANdefRead(const char *Cmd) {
aREAD_NDEF[2] = i >> 8; aREAD_NDEF[2] = i >> 8;
aREAD_NDEF[3] = i & 0xFF; aREAD_NDEF[3] = i & 0xFF;
// BUGBUG -- segment_size is stuffed into a single-byte field below? // Segment_size is stuffed into a single-byte field below ... so error out if overflows
if (segment_size > 0xFFu) { if (segment_size > 0xFFu) {
PrintAndLogEx(ERR, "Segment size too large (0x%zx > 0xFF)", segment_size); PrintAndLogEx(ERR, "Segment size too large (0x%zx > 0xFF)", segment_size);
DropField(); DropField();