From 5e2c0a87c9e1ab57a5340be37687831aab55b175 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 26 Sep 1997 20:05:47 +0000
Subject: [PATCH] Fix for psort temp file names, from Vadim.

---
 src/backend/utils/sort/psort.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/utils/sort/psort.c b/src/backend/utils/sort/psort.c
index 34864212b91..56f9f61defc 100644
--- a/src/backend/utils/sort/psort.c
+++ b/src/backend/utils/sort/psort.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.24 1997/09/18 14:41:56 vadim Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.25 1997/09/26 20:05:47 momjian Exp $
  *
  * NOTES
  *		Sorts the first relation into the second relation.
@@ -919,7 +919,7 @@ gettape()
 	 * now, copy template with final null into palloc'd space
 	 */
 
-	memmove(tp->tl_name, uniqueName, strlen(uniqueName));
+	strNcpy(tp->tl_name, uniqueName, MAXPGPATH-1);
 
 
 	file = AllocateFile(tp->tl_name, "w+");
-- 
GitLab