argp: Don't rely on undefined behaviour of _tolower().
commit2c36f42b2f4e53adc3bc3a73a46be47550999676
authorBruno Haible <bruno@clisp.org>
Tue, 8 Dec 2020 18:02:02 +0000 (8 19:02 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 8 Dec 2020 18:02:02 +0000 (8 19:02 +0100)
tree1376a06ca0bddfbfff8e48696b50571fd1344fca
parente649a3bbd4be8a6af0db7275f6600bb5bed1ffb7
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>.

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