From 39e3b09ac8a4e7e493c536368af0de5ffc7a3a46 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 18 Sep 2003 03:43:06 +0000 Subject: [PATCH] Initializes xmodem/zmodem error and status file pointers. --- src/sbbs3/sexyz.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/sexyz.c b/src/sbbs3/sexyz.c index 805eea01da..a5997984ba 100644 --- a/src/sbbs3/sexyz.c +++ b/src/sbbs3/sexyz.c @@ -403,10 +403,14 @@ void send_files(char** fname, uint fnames, FILE* log) memset(&xm,0,sizeof(xm)); xm.sock=sock; xm.mode=mode; + xm.errfp=errfp; + xm.statfp=statfp; memset(&zm,0,sizeof(zm)); zm.sock=sock; zm.mode=mode; + zm.errfp=errfp; + zm.statfp=statfp; zm.n_files_remaining = total_files; zm.n_bytes_remaining = total_bytes; @@ -597,7 +601,7 @@ void send_files(char** fname, uint fnames, FILE* log) if(!t) t=1; /* t is time so far */ cps=(uint)((block_num*(long)block_size)/t); /* cps so far */ if(!cps) cps=1; - l=fsize/cps; /* total transfer est time */ + l=fsize/cps; /* total transfer est time */ l-=t; /* now, it's est time left */ if(l<0) l=0; b=num_blocks(fsize,block_size); -- GitLab