pgsql: Use memcpy() instead of strncpy() for copying into varlena

From: petere(at)postgresql(dot)org (Peter Eisentraut)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use memcpy() instead of strncpy() for copying into varlena
Date: 2007-02-07 00:32:15
Message-ID: 20070207003215.9695C9FB252@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Use memcpy() instead of strncpy() for copying into varlena structures.

Modified Files:
--------------
pgsql/contrib/intarray:
_int_bool.c (r1.8 -> r1.9)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/intarray/_int_bool.c.diff?r1=1.8&r2=1.9)
pgsql/contrib/tsearch2:
query.c (r1.29 -> r1.30)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/query.c.diff?r1=1.29&r2=1.30)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2007-02-07 00:52:35 pgsql: Replace some strncpy() by strlcpy().
Previous Message Peter Eisentraut 2007-02-07 00:28:55 pgsql: Add strlcat() from OpenBSD, to be used for replacing strncat and