Re: Broken pipe at PQconnectdb

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ross Murray <rmurray(at)rgsc1(dot)rgsc(dot)nrcan(dot)gc(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Broken pipe at PQconnectdb
Date: 2003-08-06 22:13:54
Message-ID: 9431.1060208034@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ross Murray <rmurray(at)rgsc1(dot)rgsc(dot)nrcan(dot)gc(dot)ca> writes:
> char *conxinfo . . .
> . . .
> sprintf(conxinfo,"host=%s user=%s dbname=%s",argv[1],argv[2],argv[3]);
> . . .

Are you malloc'ing adequate space for the conxinfo string?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Roberto M. 2003-08-06 22:30:46 Setting/Accessing Internal data
Previous Message Sam Barnett-Cormack 2003-08-06 21:39:52 Re: PostgreSql under Linux