[899] in Zephyr_Bugs
zephyr 2.0.4 xzwrite crashes heavily
daemon@ATHENA.MIT.EDU (Salvatore Valente)
Sat Nov 29 20:33:41 1997
Date: Sat, 29 Nov 1997 20:33:41 -0500
To: zephyr-bugs@MIT.EDU
In-Reply-To: "[728] in Zephyr_Bugs"
From: Salvatore Valente <svalente@MIT.EDU>
Roughly two years ago, I wrote:
	zephyr 2.0-beta2 xzwrite crashes whenever a znol notification
	comes in.
I don't want to be a pest, but this was not fixed, even though there
have been several releases since 2.0-beta2.
My original message contained a suggested fix put not in standard
format.  This time I'll include a standard patch.
If this is not fixed in two more years, expect an other reminder.  :-)
Have a nice day,
Sal.
zephyr-2.0.4/clients/xzwrite/
*** logins.c.orig	Sat Nov 29 20:22:48 1997
--- logins.c	Sat Nov 29 20:28:51 1997
***************
*** 9,18 ****
  void logins_deal(notice)
     ZNotice_t *notice;
  {
!      char		*newdest;
       int		d;
  
!      d = notice->z_class_inst - strchr(notice->z_class_inst, '@');
       newdest = (char *) Malloc(d+1, "while dealing with login/logout notice",
  			       NULL);
       strncpy(newdest, notice->z_class_inst, d);
--- 9,20 ----
  void logins_deal(notice)
     ZNotice_t *notice;
  {
!      char		*newdest, c;
       int		d;
  
!      d = 0;
!      while (((c = notice->z_class_inst[d]) != '@') && (c != 0))
! 	 d++;
       newdest = (char *) Malloc(d+1, "while dealing with login/logout notice",
  			       NULL);
       strncpy(newdest, notice->z_class_inst, d);