Fix out of bounds memory write in hex2bin

Many thanks to Clover developers for spotting that