Re: Broken pipe at PQconnectdb - Mailing list pgsql-general

From Tom Lane
Subject Re: Broken pipe at PQconnectdb
Date
Msg-id 9431.1060208034@sss.pgh.pa.us
Whole thread Raw
In response to Broken pipe at PQconnectdb  (Ross Murray <rmurray@rgsc1.rgsc.nrcan.gc.ca>)
List pgsql-general
Ross Murray <rmurray@rgsc1.rgsc.nrcan.gc.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

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Error while running pg_dump
Next
From: Bruce Momjian
Date:
Subject: Re: Changing DB ownership