Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)atentus(dot)com>
Cc: Gordon Runkle <gar(at)integrated-dynamics(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U
Date: 2002-08-30 04:07:28
Message-ID: 26301.1030680448@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)atentus(dot)com> writes:
> ! ret=(char *)malloc(sizeof(char)*strlen(t));
> ! strncpy(ret, t, strlen(t));
>
> ! ret=(char *)malloc(sizeof(char)*(strlen(t)+1));
> ! strncpy(ret, t, strlen(t)+1);

What have you got against strdup() ?

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dann Corbit 2002-08-30 04:12:28 Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U
Previous Message Alvaro Herrera 2002-08-30 03:53:02 Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U