From 515e7a50ee7bbc1f74c582997bb4e874b2497ae0 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 29 Jun 1988 12:40:24 +0000 Subject: auditing changes --- lib/ZLocations.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/ZLocations.c') diff --git a/lib/ZLocations.c b/lib/ZLocations.c index 0ad2490..4a36309 100644 --- a/lib/ZLocations.c +++ b/lib/ZLocations.c @@ -7,7 +7,7 @@ * $Source$ * $Author$ * - * Copyright (c) 1987 by the Massachusetts Institute of Technology. + * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file * "mit-copyright.h". */ @@ -46,7 +46,7 @@ Code_t ZFlushMyLocations() return (Z_SendLocation(LOGIN_CLASS, LOGIN_USER_FLUSH, ZAUTH, "")); } -static char host[MAXHOSTNAMELEN], mytty[MAXHOSTNAMELEN]; +static char host[MAXHOSTNAMELEN], mytty[MAXPATHLEN]; static int reenter = 0; Z_SendLocation(class, opcode, auth, format) @@ -65,6 +65,7 @@ Z_SendLocation(class, opcode, auth, format) struct hostent *hent; short wg_port = ZGetWGPort(); + (void) bzero((char *)¬ice, sizeof(notice)); notice.z_kind = ACKED; notice.z_port = (u_short) ((wg_port == -1) ? 0 : wg_port); notice.z_class = class; @@ -77,7 +78,7 @@ Z_SendLocation(class, opcode, auth, format) /* keep track of what we said before so that we can be consistent - when changing our minds. + when changing location information. This is done mainly for the sake of the WindowGram client. */ -- cgit v1.2.3