mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Make sure that all <ctype.h> routines are called with unsigned char
values; it's not portable to call them with signed chars. I recall doing this for the last release, but a few more uncasted calls have snuck in.
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pgcrypto.c,v 1.11 2001/11/20 15:50:53 momjian Exp $
|
||||
* $Id: pgcrypto.c,v 1.12 2001/12/30 23:09:41 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
@ -556,7 +556,7 @@ find_provider(text *name,
|
||||
|
||||
p = VARDATA(name);
|
||||
for (i = 0; i < len; i++)
|
||||
buf[i] = tolower(p[i]);
|
||||
buf[i] = tolower((unsigned char) p[i]);
|
||||
buf[len] = 0;
|
||||
|
||||
err = provider_lookup(buf, &res);
|
||||
|
Reference in New Issue
Block a user