adjust for longs returned by strtol