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:31 +0000 (21:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Dec 2004 21:26:31 +0000 (21:26 +0000)
commit8090616847daad2c3b5f322bb67a0a1eed3ddcd4
tree582be9449e5ea6733f7cd937b8df6b7bd6a2674c
parent2ee3a720a4f66606eac346ce085eafbc0eaccab8
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