pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Chris Jewell <vs0u8055@liv.ac.uk>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Seg fault on completing query
Date: Thu, 13 Mar 2003 18:14:26 +0100
Message-ID: <20030313171426.GA21786@xs4all.nl> (raw)
In-Reply-To: <3E70A394.9080802@liv.ac.uk>
References: <3E70A394.9080802@liv.ac.uk>

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




view thread (3+ messages)

Message-ID: <20030313171426.GA21786@xs4all.nl>
Permalink:  ../20030313171426.GA21786@xs4all.nl/
Also on:    postgresql.org/message-id/20030313171426.GA21786@xs4all.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jtv@xs4all.nl, vs0u8055@liv.ac.uk
  Subject: Re: Seg fault on completing query
  In-Reply-To: <20030313171426.GA21786@xs4all.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox