Re: 【ECPG】strncpy function does not set the end character '\0'

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: "postgresql_2016(at)163(dot)com" <postgresql_2016(at)163(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: 【ECPG】strncpy function does not set the end character '\0'
Date: 2017-09-07 14:34:01
Message-ID: 7561.1504794841@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Meskes <meskes(at)postgresql(dot)org> writes:
> With "supposed" I was referring to the standard that defines SQLCA.

Oh. If there's actually a standard somewhere that says it's not
null-terminated, then code that is expecting it to be so is just
wrong. No need to change anything in ecpg, IMO.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2017-09-07 14:50:22 Re: 【ECPG】strncpy function does not set the end character '\0'
Previous Message Michael Meskes 2017-09-07 14:26:46 Re: 【ECPG】strncpy function does not set the end character '\0'