Parse mifare keys with colons correctly (Rainer Keller)

git-svn-id: https://svn.gnumonks.org/trunk/librfid@2037 e0336214-984f-0b4b-a45f-81c69e1f0ede
This commit is contained in:
laforge 2008-01-22 15:44:21 +00:00
parent 3e18d7e682
commit bb01e0f853
1 changed files with 1 additions and 3 deletions

View File

@ -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);