Fix unhex
authorHoward Chu <hyc@symas.com>
Fri, 20 Jun 2014 15:56:52 +0000 (08:56 -0700)
committerHoward Chu <hyc@symas.com>
Fri, 20 Jun 2014 15:56:52 +0000 (08:56 -0700)
libraries/liblmdb/mdb_load.c

index 27ffc28..967b0ff 100644 (file)
@@ -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;
 }