Received: from hesiod.nhh.no (hesiod.nhh.no [158.37.96.15]) by hub.org (8.8.8/8.8.8) with ESMTP id LAA01018 for ; Mon, 12 Oct 1998 11:17:20 -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 RAA04616; Mon, 12 Oct 1998 17:16:51 +0200 (CEST) Received: (from tih@localhost) by athene.nhh.no (8.8.8/8.8.8) id RAA01202; Mon, 12 Oct 1998 17:16:42 +0200 (CEST) Sender: tih@nhh.no To: Bruce Momjian Cc: lockhart@alumni.caltech.edu (Thomas G. Lockhart), taral@mail.utexas.edu, hackers@postgreSQL.org Subject: Re: [HACKERS] Open 6.4 items References: <199810121347.JAA01515@candle.pha.pa.us> From: Tom Ivar Helbekkmo Date: 12 Oct 1998 17:16:41 +0200 In-Reply-To: Bruce Momjian's message of "Mon, 12 Oct 1998 09:47:39 -0400 (EDT)" Message-ID: <86ww65yfmu.fsf@athene.nhh.no> Lines: 56 X-Mailer: Gnus v5.6.27/Emacs 19.34 Bruce Momjian writes: > I have lost it. Could someone resend it, and the patch to reverse too. This is the one that shouldn't have been applied: Index: inet_net_pton.c =================================================================== RCS file: /usr/local/cvsroot/pgsql/src/backend/utils/adt/inet_net_pton.c,v retrieving revision 1.2 diff -r1.2 inet_net_pton.c 120c120 < else if (size-- > 0) --- > else if (--size > 0) This is the one that works: Index: inet_net_pton.c =================================================================== RCS file: /usr/local/cvsroot/pgsql/src/backend/utils/adt/inet_net_pton.c,v retrieving revision 1.2 diff -r1.2 inet_net_pton.c 108c108,109 < *dst = 0, dirty = 0; --- > tmp = 0; > dirty = 0; 117,122c118,127 < *dst |= n; < if (!dirty++) < *dst <<= 4; < else if (size-- > 0) < *++dst = 0, dirty = 0; < else --- > tmp = (tmp << 4) | n; > if (++dirty == 2) { > if (size-- <= 0) > goto emsgsize; > *dst++ = (u_char) tmp; > tmp = 0, dirty = 0; > } > } > if (dirty) { > if (size-- <= 0) 123a129,130 > tmp <<= 4; > *dst++ = (u_char) tmp; 125,126d131 < if (dirty) < size--; -tih -- Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"