time_t atime;
uid_t myuid;
int msgsok, myttyfd, c;
- char tty[MAXPATHLEN], *mytty;
+ char tty[PATH_MAX], *mytty;
static const struct option longopts[] = {
{"version", no_argument, NULL, 'V'},
int term_chk(char *tty, int *msgsokP, time_t * atimeP, int showerror)
{
struct stat s;
- char path[MAXPATHLEN];
+ char path[PATH_MAX];
if (strlen(tty) + 6 > sizeof(path))
return 1;
char *login, *pwuid, *nows;
struct passwd *pwd;
time_t now;
- char path[MAXPATHLEN], host[MAXHOSTNAMELEN], line[512];
+ char path[PATH_MAX], host[MAXHOSTNAMELEN], line[512];
/* Determine our login name(s) before the we reopen() stdout */
if ((pwd = getpwuid(myuid)) != NULL)