X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=src%2Frfid_proto_mifare_ul.c;h=d90ac63a84f466bf6e7f91eea44694261f2f8a04;hb=1482f3ce3eb6daed7f68447c509ab022e484dd9a;hp=e1fe3b928250150bb8e1db9ff9b6c6d6492c7f4e;hpb=b66544b49bba04489f389c8720651f5f1db962e6;p=librfid diff --git a/src/rfid_proto_mifare_ul.c b/src/rfid_proto_mifare_ul.c index e1fe3b9..d90ac63 100644 --- a/src/rfid_proto_mifare_ul.c +++ b/src/rfid_proto_mifare_ul.c @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include #include @@ -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; }