From a4ff6191f70e3601ccaf7c0fd386b95a9f7360dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 12 Mar 2014 00:03:53 +0000 Subject: [PATCH] I must have been drunk when I wrote this. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@788 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- lib/liboath/oath_uri_decode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/liboath/oath_uri_decode.c b/lib/liboath/oath_uri_decode.c index 8f23e76..1a9beac 100644 --- a/lib/liboath/oath_uri_decode.c +++ b/lib/liboath/oath_uri_decode.c @@ -39,10 +39,10 @@ #include "openpam_ctype.h" -#define unhex(ch) \ - ((ch >= '0' && ch <= '9') ? ch - '0' : \ - (ch >= 'A' && ch <= 'F') ? ch - 'A' : \ - (ch >= 'a' && ch <= 'F') ? ch - 'a' : 0) +#define unhex(ch) \ + ((ch >= '0' && ch <= '9') ? ch - '0' : \ + (ch >= 'A' && ch <= 'F') ? 0xa + ch - 'A' : \ + (ch >= 'a' && ch <= 'f') ? 0xa + ch - 'a' : 0) /* * OATH