Fix buffer overflow in input - get_abs_min_max()