summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-19 01:27:15 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-19 01:27:22 +0200
commit1552abf62820e063e933e54372bec25f8ea2f68a (patch)
tree1c5f742f02cd2377fb23f9edf76dc2b7d44af966 /src/modules
parentf26c849efc23e5dddf1b11773b1d19a67491a504 (diff)
udev: fix hex decoding
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/udev-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/udev-util.c b/src/modules/udev-util.c
index eee5409a..52df1039 100644
--- a/src/modules/udev-util.c
+++ b/src/modules/udev-util.c
@@ -63,10 +63,10 @@ static int dehex(char x) {
return x - '0';
if (x >= 'A' && x <= 'F')
- return x - 'A';
+ return x - 'A' + 10;
if (x >= 'a' && x <= 'f')
- return x - 'a';
+ return x - 'a' + 10;
return -1;
}