From 1a72b19e26d226eaec26a7f9cd231337f20bf4da Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 20 Jun 2014 08:56:52 -0700 Subject: [PATCH] Fix unhex --- libraries/liblmdb/mdb_load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c index 27ffc28..967b0ff 100644 --- a/libraries/liblmdb/mdb_load.c +++ b/libraries/liblmdb/mdb_load.c @@ -128,11 +128,11 @@ static int unhex(unsigned char *c2) int x, c; x = *c2++ & 0x4f; if (x & 0x40) - x -= 54; + x -= 55; c = x << 4; x = *c2 & 0x4f; if (x & 0x40) - x -= 54; + x -= 55; c |= x; return c; }