diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2011-06-18 07:47:15 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2011-06-18 07:47:15 +0000 |
| commit | c3f1b3ae094280da4c19a318cd5c7e56edf4fac2 (patch) | |
| tree | 45e23955b0ae20eae4eb6a30a0b2c9af06c46171 | |
| parent | cf95dbae062665ffe5fa6b18cf4ab1ff1ba89a7e (diff) | |
Notes
| -rw-r--r-- | usr.bin/users/users.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/users/users.c b/usr.bin/users/users.c index f83a592ccf79..c13cc37eedae 100644 --- a/usr.bin/users/users.c +++ b/usr.bin/users/users.c @@ -50,7 +50,7 @@ static const char rcsid[] = #include <unistd.h> #include <utmpx.h> -typedef char namebuf[MAXLOGNAME]; +typedef char namebuf[sizeof(((struct utmpx *)0)->ut_user) + 1]; int scmp(const void *, const void *); static void usage(void); |
