Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f64a07 commit f11aa82Copy full SHA for f11aa82
contrib/intarray/_int_bool.c
@@ -779,7 +779,7 @@ querytree(PG_FUNCTION_ARGS)
779
780
res = (text *) palloc(nrm.cur - nrm.buf + VARHDRSZ);
781
VARATT_SIZEP(res) = nrm.cur - nrm.buf + VARHDRSZ;
782
- strncpy(VARDATA(res), nrm.buf, nrm.cur - nrm.buf);
+ memcpy(VARDATA(res), nrm.buf, nrm.cur - nrm.buf);
783
}
784
pfree(q);
785
contrib/tsearch2/query.c
@@ -928,7 +928,7 @@ tsquerytree(PG_FUNCTION_ARGS)
928
929
930
931
932
933
934
0 commit comments