Let the size of the namebuf depend on the size of the ut_user field.

This commit is contained in:
Ed Schouten 2011-06-18 07:47:15 +00:00
parent cf95dbae06
commit c3f1b3ae09

View file

@ -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);