Fix misuse of StrNCpy to copy and add null to non-null-terminated data.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 65da0d66b4e89951078ebc43a5343780e4e700d6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-07-07T21:12:53Z
Releases: 7.1.1
Fix misuse of StrNCpy to copy and add null to non-null-terminated data.
Does not work since it fetches one byte beyond the source data, and when
the phase of the moon is wrong, the source data is smack up against the
end of backend memory and you get SIGSEGV.  Don't laugh, this is a fix
for an actual user bug report.

Files