timmerk / nfc-tools

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

mfoc getopts broken #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The example command:

  mfoc -P 50 -T 30 -O mycard.mfd

fails with:

  mfoc: ERROR: The nonce distances range must be a zero or a positive number

This is due to incorrect checking of atoi conversion of getopts. Patch attached.

Original issue reported on code.google.com by fnargwibble on 13 Oct 2012 at 12:08

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by romu...@libnfc.org on 14 Oct 2012 at 10:26

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

Original comment by romu...@libnfc.org on 14 Oct 2012 at 10:35