Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!lth.se!newsuser From: Dan@dna.lth.se (Dan Oscarsson) Newsgroups: comp.protocols.appletalk Subject: bug-fix 3 for UAB Message-ID: <1990Feb25.114302.11687@lth.se> Date: 25 Feb 90 11:43:02 GMT Sender: newsuser@lth.se (LTH network news server) Organization: Computer Science, Lund Institute of Technology, Sweden Lines: 32 Here is a new patch to uab. It fixes an error where a struct contains 3 bytes and sizeof returns 4. Dan ----------------------------patch---------------------------- Problem: UAB missing first byte from the received long DDP packet *** ethertalk.c.org Fri Feb 23 10:47:41 1990 --- ethertalk.c Fri Feb 23 10:49:39 1990 *************** *** 304,310 **** iov[0].iov_base = (caddr_t)&ea; iov[0].iov_len = sizeof(ea); iov[1].iov_base = (caddr_t)⪅ ! iov[1].iov_len = sizeof(lap); iov[2].iov_base = (caddr_t)rbuf; iov[2].iov_len = sizeof(rbuf); if ((cc = pi_readv(etph, iov, 3)) < 0) { --- 304,310 ---- iov[0].iov_base = (caddr_t)&ea; iov[0].iov_len = sizeof(ea); iov[1].iov_base = (caddr_t)⪅ ! iov[1].iov_len = lapSize; iov[2].iov_base = (caddr_t)rbuf; iov[2].iov_len = sizeof(rbuf); if ((cc = pi_readv(etph, iov, 3)) < 0) {