Re: [PATCH v4 1/2] man/man3/strto[u]l.3: BUGS: Signed numbers and white space are not rejected

Bruno Haible
2025-03-23T17:14:53Z

Alejandro,

> I ended up doing what you said:
>
> <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=ebe5a89dcd431d15c54ebc22eaa35721496fee4b>

+if ((errno == ERANGE && n == LONG_MIN) || n > max)

Here: LONG_MIN -> LONG_MAX

Signed-off-by: Bruno Haible <bruno@clisp.org>