diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-12-03 21:26:31 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-12-03 21:26:31 +0000 |
commit | 8090616847daad2c3b5f322bb67a0a1eed3ddcd4 (patch) | |
tree | 582be9449e5ea6733f7cd937b8df6b7bd6a2674c /src/backend/commands/functioncmds.c | |
parent | 2ee3a720a4f66606eac346ce085eafbc0eaccab8 (diff) | |
download | postgresql-8090616847daad2c3b5f322bb67a0a1eed3ddcd4.tar.gz postgresql-8090616847daad2c3b5f322bb67a0a1eed3ddcd4.zip |
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.
Diffstat (limited to 'src/backend/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions