Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5e2c0a8

Browse files
committed
Fix for psort temp file names, from Vadim.
1 parent 544992c commit 5e2c0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/sort/psort.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.24 1997/09/18 14:41:56 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.25 1997/09/26 20:05:47 momjian Exp $
1111
*
1212
* NOTES
1313
* Sorts the first relation into the second relation.
@@ -919,7 +919,7 @@ gettape()
919919
* now, copy template with final null into palloc'd space
920920
*/
921921

922-
memmove(tp->tl_name, uniqueName, strlen(uniqueName));
922+
strNcpy(tp->tl_name, uniqueName, MAXPGPATH-1);
923923

924924

925925
file = AllocateFile(tp->tl_name, "w+");

0 commit comments

Comments
 (0)