diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-08 08:07:25 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-08 08:07:25 +0000 |
commit | 68cd6340fb48e9e9f5493b4ec6d27196445b5d8c (patch) | |
tree | 7b0221f705e1c9db5b29cbe299c95fd564f15f6e /lib/libc | |
parent | 032ed8c301fa7ab5747036ae7b2acc2820924cab (diff) |
fix sizeof's when aliasing reentrant structures.
(this caused group name lookups to fail)
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getgrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index cfd5d1e44de..609e7fe7d08 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getgrent.c,v 1.11 2000/01/06 08:19:48 d Exp $"; +static char rcsid[] = "$OpenBSD: getgrent.c,v 1.12 2000/01/08 08:07:24 d Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -308,7 +308,7 @@ grscan(search, gid, name, p_gr) goto parse; } #endif - if (!fgets(line, sizeof(line), _gr_fp)) + if (!fgets(line, sizeof(gs->line), _gr_fp)) return(0); bp = line; /* skip lines that are too big */ |