We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 544992c commit 5e2c0a8Copy full SHA for 5e2c0a8
src/backend/utils/sort/psort.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $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 $
11
12
* NOTES
13
* Sorts the first relation into the second relation.
@@ -919,7 +919,7 @@ gettape()
919
* now, copy template with final null into palloc'd space
920
*/
921
922
- memmove(tp->tl_name, uniqueName, strlen(uniqueName));
+ strNcpy(tp->tl_name, uniqueName, MAXPGPATH-1);
923
924
925
file = AllocateFile(tp->tl_name, "w+");
0 commit comments