argp: Don't rely on undefined behaviour of _tolower().
commit1b3fc33f810b605e0e6dfcba96dddae432ccaab3
authorBruno Haible <bruno@clisp.org>
Thu, 7 Jan 2021 01:06:17 +0000 (7 02:06 +0100)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 4 Feb 2021 19:44:24 +0000 (4 16:44 -0300)
tree00ef0dc42d3fb920c9294b9b90bbfe0f74aa7414
parent5ec029c8835b71d7a3d6036c9358198b4d9e59fc
argp: Don't rely on undefined behaviour of _tolower().

Patch by Eric Blake
<https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.

* argp/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
not upper-case.  Pass correct range to tolower.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
argp/argp-help.c