From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p0MMU1rI028722 for ; Sat, 22 Jan 2011 17:30:02 -0500 (EST) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/YPAwtil3kVlq3myX X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (dslb-088-074-063-088.pools.arcor-ip.net [88.74.63.88]) by post.strato.de (fruni mo40) (RZmta 24.12) with (DHE-RSA-AES128-SHA encrypted) ESMTP id L06673n0MINHY7 for ; Sat, 22 Jan 2011 23:29:59 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Sat, 22 Jan 2011 23:29:38 +0100 Date: Sat, 22 Jan 2011 23:29:38 +0100 From: Joerg Sonnenberger To: tech@mdocml.bsd.lv Subject: Re: line termination in manuals Message-ID: <20110122222938.GA30488@britannica.bec.de> Mail-Followup-To: tech@mdocml.bsd.lv References: <20110122195656.GE12520@iris.usta.de> <20110122200516.GA26592@britannica.bec.de> <20110122212814.GH12520@iris.usta.de> <20110122213510.GA29547@britannica.bec.de> <20110122221836.GJ12520@iris.usta.de> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110122221836.GJ12520@iris.usta.de> User-Agent: Mutt/1.5.20 (2009-06-14) On Sat, Jan 22, 2011 at 11:18:36PM +0100, Ingo Schwarze wrote: > When the last character in blk.buf is '\r' (without a newline > at the end of the file), my first attempt would have overrun > the buffer by one byte. Right. What about the same condition for the first if? Joerg -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv