Let the size of the namebuf depend on the size of the ut_user field.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user