summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 3313ac998..818312ff1 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshlogin.c,v 1.30 2015/01/16 06:40:12 deraadt Exp $ */ 1/* $OpenBSD: sshlogin.c,v 1.31 2015/01/20 23:14:00 deraadt Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -42,7 +42,6 @@
42#include "includes.h" 42#include "includes.h"
43 43
44#include <sys/types.h> 44#include <sys/types.h>
45#include <sys/param.h> /* MAXHOSTNAMELEN */
46#include <sys/socket.h> 45#include <sys/socket.h>
47 46
48#include <netinet/in.h> 47#include <netinet/in.h>
@@ -54,6 +53,7 @@
54#include <string.h> 53#include <string.h>
55#include <time.h> 54#include <time.h>
56#include <unistd.h> 55#include <unistd.h>
56#include <limits.h>
57 57
58#include "loginrec.h" 58#include "loginrec.h"
59#include "log.h" 59#include "log.h"
@@ -88,7 +88,7 @@ static void
88store_lastlog_message(const char *user, uid_t uid) 88store_lastlog_message(const char *user, uid_t uid)
89{ 89{
90#ifndef NO_SSH_LASTLOG 90#ifndef NO_SSH_LASTLOG
91 char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512]; 91 char *time_string, hostname[HOST_NAME_MAX+1] = "", buf[512];
92 time_t last_login_time; 92 time_t last_login_time;
93 93
94 if (!options.print_lastlog) 94 if (!options.print_lastlog)