egray@fthood.UUCP (02/17/89)
This is patch #10 to the Pcomm v1.1 distribution package. Anyone taking bets on whether or not this is the last patch to version 1.1? This patch will fix a problem with ymodem transfers on 16 bit systems, and will fix a bug in the redial function. Many thanks to Larry Clark (...killer!larryd1) for pointing these bugs out to me. Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057 ----------------------------------------------------------------------------- Prereq: "1.1.9" *** old/info.c Sun Feb 12 09:26:24 1989 --- info.c Sun Feb 12 09:27:54 1989 *************** *** 4,9 */ ! #define VERSION "1.1.9" ! #define DATE "9 Feb 89" #include <stdio.h> --- 4,9 ----- */ ! #define VERSION "1.1.10" ! #define DATE "18 Feb 89" #include <stdio.h> *** old/main.c Sun Feb 12 09:26:23 1989 --- main.c Sun Feb 12 09:27:34 1989 *************** *** 21,24 * patch #8 2 Feb 89 * patch #9 9 Feb 89 */ --- 21,25 ----- * patch #8 2 Feb 89 * patch #9 9 Feb 89 + * patch #10 18 Feb 89 */ *** old/redial.c Fri Feb 10 09:54:21 1989 --- redial.c Sun Feb 12 09:22:51 1989 *************** *** 52,56 entry = strtok(ans, " "); for (i=0; i<NUM_QUEUE; i++) { ! if (*entry == '\0') { dir->q_num[i] = -1; continue; --- 52,56 ----- entry = strtok(ans, " "); for (i=0; i<NUM_QUEUE; i++) { ! if (entry == NULL) { dir->q_num[i] = -1; continue; *** old/x_rcv.c Fri Feb 10 09:54:21 1989 --- x_rcv.c Sun Feb 12 09:23:55 1989 *************** *** 29,33 int i, default_err, is_batch, max_block, code, file_count, got_hdr; int hours, mins, secs, len; ! long block, recv; float percent, performance; unsigned char blk; --- 29,33 ----- int i, default_err, is_batch, max_block, code, file_count, got_hdr; int hours, mins, secs, len; ! long block, recv, partial; float percent, performance; unsigned char blk; *************** *** 193,198 if (!code) { if (file_length != 0L) { ! len = file_length - recv; ! if (len > block_size) len = block_size; } --- 193,198 ----- if (!code) { if (file_length != 0L) { ! partial = file_length - recv; ! if (partial > (long) block_size) len = block_size; else *************** *** 196,199 if (len > block_size) len = block_size; } else --- 196,201 ----- if (partial > (long) block_size) len = block_size; + else + len = partial; } else