X-Original-To: pgsql-interfaces@postgresql.org Received: from mxzilla4.xs4all.nl (mxzilla4.xs4all.nl [194.109.6.48]) by postgresql.org (Postfix) with ESMTP id 77E224758FE for ; Thu, 13 Mar 2003 12:14:26 -0500 (EST) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.3.11]) by mxzilla4.xs4all.nl (8.12.3/8.12.3) with ESMTP id h2DHEQoT070613; Thu, 13 Mar 2003 18:14:27 +0100 (CET) Received: (from jtv@localhost) by xs1.xs4all.nl (8.11.6/8.11.6) id h2DHEQL23060; Thu, 13 Mar 2003 18:14:26 +0100 (CET) (envelope-from jtv) Date: Thu, 13 Mar 2003 18:14:26 +0100 From: "Jeroen T. Vermeulen" To: Chris Jewell Cc: pgsql-interfaces@postgresql.org Subject: Re: Seg fault on completing query Message-ID: <20030313171426.GA21786@xs4all.nl> Mail-Followup-To: Chris Jewell , pgsql-interfaces@postgresql.org References: <3E70A394.9080802@liv.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E70A394.9080802@liv.ac.uk> User-Agent: Mutt/1.4i X-Archive-Number: 200303/66 X-Sequence-Number: 3815 On Thu, Mar 13, 2003 at 03:28:20PM +0000, Chris Jewell wrote: > char *name; [...] > sprintf(name, "%s", PQgetvalue(res, i, 0)); [...] So where do you allocate something for 'name' to point to? Jeroen