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

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

As I said I haven't checked if this detail is actually in there, but I
guess it was because there is a reason why we, and other databases,
define it that way.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] 【ECPG】strncpy function does not set the end character '\0'
Next
From: Chris Travers
Date:
Subject: Re: [HACKERS] Proposal: pg_rewind to skip config files