projects
/
librfid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d774e5f
)
support lower and upper case hex chars
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Feb 2014 14:06:05 +0000
(15:06 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Feb 2014 14:06:05 +0000
(15:06 +0100)
utils/common.c
patch
|
blob
|
history
diff --git
a/utils/common.c
b/utils/common.c
index
ec7fda0
..
ba39710
100644
(file)
--- a/
utils/common.c
+++ b/
utils/common.c
@@
-43,6
+43,8
@@
static char parse_hexdigit(const char hexdigit)
return hexdigit - '0';
if (hexdigit <= 'f' && hexdigit >= 'a')
return 10 + (hexdigit - 'a');
+ if (hexdigit <= 'F' && hexdigit >= 'A')
+ return 10 + (hexdigit - 'A');
return 0;
}