Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon S. Allbery) Newsgroups: comp.unix.wizards Subject: Re: bug in "portable way to do nap()" Message-ID: <12836@ncoast.UUCP> Date: 17 Oct 88 21:22:43 GMT References: <543@mpx1.UUCP> <12665@ncoast.UUCP> <10450@tekecs.TEK.COM> Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery) Followup-To: comp.unix.wizards Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 19 As quoted from <10450@tekecs.TEK.COM> by andrew@frip.gwd.tek.com (Andrew Klossner): +--------------- | > int baudrate[] = { | > 50, | | This is followed by code which subscripts baudrate[tty.c_cflags&CBAUD]. | There's an off-by-one here. baudrate[1], not baudrate[0], should be +--------------- Oops (*blush*). I knew that, but I was "coding on the run" and didn't stop to think about baud rate B0.... ++Brandon -- Brandon S. Allbery, comp.sources.misc moderator and one admin of ncoast PA UN*X uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu allbery@skybridge.sdi.cwru.edu allbery@uunet.uu.net comp.sources.misc is moving off ncoast -- please do NOT send submissions direct (But the aliases are NOT on UUNET yet, use the aliases at backbone sites!)