mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
Let the size of the namebuf depend on the size of the ut_user field.
This commit is contained in:
parent
cf95dbae06
commit
c3f1b3ae09
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue