diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1999-11-04 04:16:28 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1999-11-04 04:16:28 +0000 |
| commit | 49435560cc988ecad06b5a161ae1abaa8670ec50 (patch) | |
| tree | 06f60b8ad3061c4485404825978a40680015e710 /lib/libc/gen/getnetgrent.c | |
| parent | c12c023aa47771ccd1a0336c87af7a1249e03d58 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/getnetgrent.c')
| -rw-r--r-- | lib/libc/gen/getnetgrent.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index cc33d1f4e6da..a26c86ce6f00 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -32,6 +32,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #if defined(LIBC_SCCS) && !defined(lint) @@ -283,16 +285,16 @@ static int _listmatch(list, group, len) int glen = strlen(group); /* skip possible leading whitespace */ - while(isspace(*ptr)) + while(isspace((unsigned char)*ptr)) ptr++; while (ptr < list + len) { cptr = ptr; - while(*ptr != ',' && *ptr != '\0' && !isspace(*ptr)) + while(*ptr != ',' && *ptr != '\0' && !isspace((unsigned char)*ptr)) ptr++; if (strncmp(cptr, group, glen) == 0 && glen == (ptr - cptr)) return(1); - while(*ptr == ',' || isspace(*ptr)) + while(*ptr == ',' || isspace((unsigned char)*ptr)) ptr++; } |
