diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1997-04-08 20:36:36 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1997-04-08 20:36:36 +0000 |
| commit | eac60dd633da9ae08529593e450f93d8db43ac9a (patch) | |
| tree | ed54068b81b9ebc71734a386889a009c455dd78b /libexec/uucpd | |
| parent | fe83da2eecd4ad041bb1eb7702b2724e7611e9df (diff) | |
Notes
Diffstat (limited to 'libexec/uucpd')
| -rw-r--r-- | libexec/uucpd/uucpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index 8f53807c84c77..f95b38857685b 100644 --- a/libexec/uucpd/uucpd.c +++ b/libexec/uucpd/uucpd.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uucpd.c,v 1.11 1997/04/01 20:39:59 joerg Exp $ + * $Id: uucpd.c,v 1.12 1997/04/08 12:32:17 davidn Exp $ */ #ifndef lint @@ -257,6 +257,7 @@ void dologin(struct passwd *pw, struct sockaddr_in *sin) } else strncpy(remotehost, inet_ntoa(sin->sin_addr), sizeof (remotehost)); + remotehost[sizeof remotehost - 1] = '\0'; /* hack, but must be unique and no tty line */ sprintf(line, "uucp%ld", getpid()); time(&cur_time); |
