Use StrNCpy not strncpy to fill hash key, to ensure the resulting key
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Dec 2004 21:26:52 +0000 (21:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Dec 2004 21:26:52 +0000 (21:26 +0000)
commitde68155298234e86cc8a1f0dabae0a2eaa304072
tree7344225061c4c502ab829c066f9dcfed52afca66
parent8d424b321737d8b28813bd709a9bdbdc0ef5df47
Use StrNCpy not strncpy to fill hash key, to ensure the resulting key
is null-terminated.  I think this is not a real bug because the parser
would always have truncated the identifier to NAMEDATALEN-1 already,
but let's be safe.  Per report from Klocwork.
src/backend/commands/prepare.c