X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=src%2Frfid_proto_mifare_ul.c;h=ea421664aaebd8c032aa10704b3056fe24a1fd86;hb=afb29620f0e4c3529755b48edd19275a52331710;hp=e1fe3b928250150bb8e1db9ff9b6c6d6492c7f4e;hpb=b66544b49bba04489f389c8720651f5f1db962e6;p=librfid diff --git a/src/rfid_proto_mifare_ul.c b/src/rfid_proto_mifare_ul.c index e1fe3b9..ea42166 100644 --- a/src/rfid_proto_mifare_ul.c +++ b/src/rfid_proto_mifare_ul.c @@ -109,7 +109,8 @@ mful_getopt(struct rfid_protocol_handle *ph, int optname, void *optval, switch (optname) { case RFID_OPT_PROTO_SIZE: ret = 0; - *size = 512; + /* we have to return the size in bytes, not bits */ + *size = 512/8; break; }