Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!seismo!nbires!hao!noao!arizona!wendt From: wendt@arizona.UUCP Newsgroups: comp.sources.d Subject: Re: modem.c - bug fixes Message-ID: <1536@megaron.arizona.edu> Date: Thu, 26-Feb-87 16:46:46 EST Article-I.D.: megaron.1536 Posted: Thu Feb 26 16:46:46 1987 Date-Received: Sun, 1-Mar-87 12:04:14 EST References: <4552@robin.cs.nott.ac.uk> Organization: U of Arizona CS Dept, Tucson Lines: 31 Keywords: modem uucp bidirectional bugs Summary: Another bug fix In article <4552@robin.cs.nott.ac.uk>, settle@cs.nott.ac.uk (Dave Settle SMB) writes: > dread(f, s, n) > int f, n; > char *s; > { > int i; > for(i=0;i if(locked()) exit(0); > while(read(f, s, 1) < 1) if(locked()) exit(0); > } > } The character pointer, s, needs to be incremented in this loop. Now in order to comply with Federal law and comp.sources.d practice and traditions, here's my contribution to the discussion about port turnaround: "That's the sort of blinkard philistine pig-ignorance I've come to expect from you non-creative garbage. "Sitting all day long on your loathsome spotty behinds picking blackheads, not giving a tinkers cusp for the struggling artist. With your Tony Jacklin golf clubs and your secret Masonic handshakes... Well I wouldn't become a freemason now if you got on your lousy stinkin knees and begged me!" Alan Wendt U of AZ Computer Science