[comp.sys.atari.st] ZMDM update

bammi@cwruecmp.UUCP (08/21/87)

Thanks to ncoast!bsrjr and mist!hakanson for pointing out the
following bug that crept into ZMDM. At baud rates <= 2400 baud, when
transmitting a file using zmodem protocol, the count that is displayed
is incorrect. The files however are transferred fine, just the visual
counter on the screen shows the counts incorrectly.

To fix, patch SZ.C as follows (add lines marked with `+'):

*** osz.c	Thu Aug 20 19:14:35 1987
--- sz.c	Thu Aug 20 19:18:27 1987
***************
*** 1190,1195 ****
--- 1190,1200 ----
  			e = ZCRCG;
  		zsdata(secbuf, c, e);
  		Txpos += c;
+ 		if(e == ZCRCG)
+ 		{
+ 			tcount += c;
+ 			lreport(tcount);
+ 		}
  
  		if (e == ZCRCW)
  			goto waitack;
-- 
usenet: {decvax,cbosgd,sun}!cwruecmp!bammi	jwahar r. bammi
csnet:       bammi@cwru.edu
arpa:        bammi@cwru.edu
compuServe:  71515,155