Re: [HACKERS] 【ECPG】strncpy function does not set the end character '\0' - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] 【ECPG】strncpy function does not set the end character '\0'
Date
Msg-id 7561.1504794841@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'  (Michael Meskes <meskes@postgresql.org>)
Responses Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Michael Meskes <meskes@postgresql.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



pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'
Next
From: Michael Meskes
Date:
Subject: Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'