From: Howard Chu Date: Fri, 20 Jun 2014 15:56:52 +0000 (-0700) Subject: Fix unhex X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~128^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a72b19e26d226eaec26a7f9cd231337f20bf4da;p=openldap Fix unhex --- diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c index 27ffc2801f..967b0ff249 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; }