analyse hextou() properly

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>