keithw/mosh — pull request #129 by peterjeremy (2012-04-10 23:36:47+00:00)
Title: Patch parse_params() to deal with BSD strtol()

strtol(3) can optionally set errno to EINVAL if no conversion could be
performed and FreeBSD (at least) implements thin behaviour. Add an
explicit test to detect this situation in Dispatcher::parse_params().
(This behaviour difference is not relevant to other uses of strtol()).

This corrects the mishandling of (eg) "CSI m" on FreeBSD.