MFS - Use mmap() instead of malloc().
[dragonfly.git] / lib / libpam / patches / openpam_configure.c.patch
blob7830fe86438dc006b3b947edcb8f3404f07b3d29
1 $DragonFly: src/lib/libpam/patches/openpam_configure.c.patch,v 1.1 2005/07/13 12:34:21 joerg Exp $
3 --- openpam_configure.c.orig 2005-07-07 19:43:40.000000000 +0200
4 +++ openpam_configure.c 2005-07-07 19:44:09.000000000 +0200
5 @@ -69,7 +69,8 @@
6 match_word(const char *str, const char *word)
9 - while (*str && tolower(*str) == tolower(*word))
10 + while (*str &&
11 + tolower((unsigned char)*str) == tolower((unsigned char)*word))
12 ++str, ++word;
13 return (*str == ' ' && *word == '\0');