Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!agate!ucbvax!ucs.UWPLATT.EDU!TAGLANCE From: TAGLANCE@ucs.UWPLATT.EDU (LANCE TAGLIAPIETRA) Newsgroups: comp.os.cpm Subject: Fix for Kermit TRANSMIT command bug. Message-ID: Date: 28 Jan 91 02:03:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 29 Hello, I have found the fix to the bug in with the TRANSMIT command in version 4.09 of kermit. The bug is in the file CPSUTL.ASM. The problem is that subroutine INBUF: is pre-decrementing the byte count by 1, (decrementing an assembly generated constant) causing the last character of each record to be ignored. The line at fault was a few lines after label inbuf2: and read mvi a,bufsiz-1 ; Number of bytes in buffer (pre-decremented) this should be corrected to mvi a,bufsiz ; Number of bytes in buffer. This bug only shows when files to be send via TRANSMIT are greater than 128 bytes. The pausit: routine in the same file is also missing a return statement. The cpsker.hex file does not seem to have this problem, but the source file does not have the return listed in the (corrected) code fragment below: jz pausi1 ; loop until a key has been pressed. ret I hope this can help someone. Lance Tagliapietra taglance@ucs.uwplatt.edu or taglance@uwplatt.bitnet