Fix unhex

This commit is contained in:
Howard Chu 2014-06-20 08:56:52 -07:00
parent 21b51cb746
commit 1a72b19e26

View 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;
}