timmerk / nfc-tools

Automatically exported from code.google.com/p/nfc-tools
0 stars 0 forks source link

Command line parameter -k does not work as expected #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.type mfoc -k ffffaaaabbbb
2.The custom key 0x00007fffffff has been added to the default keys
3.Clearly desired key is not added properly to the list

What is the expected output? What do you see instead?

The custom key 0xffffaaaabbbb has been added to the default keys

What version of the product are you using? On what operating system?
mfoc-0.9

Please provide any additional information below.

line 129 of mfoc.c should be:
num_to_bytes(strtoll(optarg, NULL, 16), 6, defKey);

instead of 
num_to_bytes(strtol(optarg, NULL, 16), 6, defKey);

Original issue reported on code.google.com by m1g...@gmail.com on 20 Jan 2011 at 4:59

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r753.

Original comment by romu...@libnfc.org on 2 Feb 2011 at 10:46

GoogleCodeExporter commented 9 years ago
Thank you for reporting!

Original comment by romu...@libnfc.org on 2 Feb 2011 at 10:47