diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2007-02-07 00:32:15 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2007-02-07 00:32:15 +0000 |
commit | f11aa82d0378c48da9fc67e479699a1f8bb99483 (patch) | |
tree | de3e7fb19de28ac2ef53f7b3b3040d4ccc48c6c7 /contrib/intarray/_int_bool.c | |
parent | 4f64a07bee090fe559055fbe866ad9aa3bf001ee (diff) | |
download | postgresql-f11aa82d0378c48da9fc67e479699a1f8bb99483.tar.gz postgresql-f11aa82d0378c48da9fc67e479699a1f8bb99483.zip |
Use memcpy() instead of strncpy() for copying into varlena structures.
Diffstat (limited to 'contrib/intarray/_int_bool.c')
-rw-r--r-- | contrib/intarray/_int_bool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/intarray/_int_bool.c b/contrib/intarray/_int_bool.c index 8517010e5ed..23ee8f1dada 100644 --- a/contrib/intarray/_int_bool.c +++ b/contrib/intarray/_int_bool.c @@ -779,7 +779,7 @@ querytree(PG_FUNCTION_ARGS) res = (text *) palloc(nrm.cur - nrm.buf + VARHDRSZ); VARATT_SIZEP(res) = nrm.cur - nrm.buf + VARHDRSZ; - strncpy(VARDATA(res), nrm.buf, nrm.cur - nrm.buf); + memcpy(VARDATA(res), nrm.buf, nrm.cur - nrm.buf); } pfree(q); |