[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Patch: ctype functions require 'unsigned char' args (ITS#1678)



Applied to HEAD, please test.

Kurt

At 01:45 AM 2002-04-15, h.b.furuseth@usit.uio.no wrote:
>Here are fixes for more places where the argument to ctype.h functions
>should be in the range of `unsigned char':
>
>   http://folk.uio.no/hbf/OpenLDAP/ctype-2.txt
>
>Explanation of the last patch (to schema_init.c:bvcasechr()):
>TOLOWER() and TOUPPER() return values in the range of `unsigned char',
>but bvcasechr() then compares those values with a plain `char'.  So I
>convert the return values from TOLOWER()/TOUPPER() to `char' first.
>
>-- 
>Hallvard