diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-01-22 15:44:21 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-01-22 15:44:21 +0000 |
commit | bb01e0f8534a785beeb64f01960b29b69b0227c5 (patch) | |
tree | 5049bab122451112c457e46ef237fba055b2697d /utils | |
parent | 3e18d7e6828cd82bab2be5d653e11f100a00655b (diff) |
Parse mifare keys with colons correctly (Rainer Keller)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2037 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'utils')
-rw-r--r-- | utils/common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/common.c b/utils/common.c index 08c7c1f..12c3bd4 100644 --- a/utils/common.c +++ b/utils/common.c @@ -55,10 +55,8 @@ hexread(unsigned char *result, const unsigned char *in, unsigned int len) unsigned char *res = result; for (pos = in; pos-in <= len-2; pos+=2) { - if (*pos == ':') { + if (*pos == ':') pos++; - continue; - } dig1 = *pos; dig2 = *(pos+1); |