Received: from hesiod.nhh.no (hesiod.nhh.no [158.37.96.15]) by hub.org (8.8.8/8.8.8) with ESMTP id IAA16439 for ; Sat, 10 Oct 1998 08:38:35 -0400 (EDT) (envelope-from tih@athene.nhh.no) Received: from athene.nhh.no (athene.nhh.no [158.37.96.16]) by hesiod.nhh.no (8.8.8/8.8.8) with ESMTP id OAA23727; Sat, 10 Oct 1998 14:38:26 +0200 (CEST) Received: (from tih@localhost) by athene.nhh.no (8.8.8/8.8.8) id OAA00372; Sat, 10 Oct 1998 14:38:25 +0200 (CEST) Sender: tih@nhh.no To: Tom Lane Cc: Tom Ivar Helbekkmo , Paul A Vixie , hackers@postgreSQL.org Subject: Re: [HACKERS] Open 6.4 items References: <23787.907968022@sss.pgh.pa.us> From: Tom Ivar Helbekkmo Date: 10 Oct 1998 14:38:25 +0200 In-Reply-To: Tom Lane's message of "Fri, 09 Oct 1998 17:20:22 -0400" Message-ID: <86iuhsd22m.fsf@athene.nhh.no> Lines: 30 X-Mailer: Gnus v5.6.27/Emacs 19.34 Tom Lane writes: > Tom Ivar Helbekkmo writes: > > As far as I > > can tell, the only actual error in Paul Vixie's code is that the two > > lines you quote above should be: > > else if (--size > 0) > > *++dst = 0, dirty = 0; > > No, that's still wrong, because it will error out (jump to emsgsize) > one byte sooner than it should. The loop is fundamentally broken > because it wants to grab and zero a byte before it knows whether there > are any digits for the byte. Damn! You're right! I swear I tested that change at home, and found it to do what I wanted -- but now that I've put it into my production system at work, it doesn't work here. Heck, I even read the code very carefully to verify that it was all that was needed! I think I really need the holiday I'm taking next week! To keep this in sync with BIND, maybe Paul could take a look, and fix the code the way he wants it there? Whoops. It just hit me. When I tested my "quick fix" last night, I just looked at what happened to the data, and ignored the return value. Silly of me... -tih -- Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"