Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e2c0a8

Browse files
committed
Fix for psort temp file names, from Vadim.
1 parent544992c commit5e2c0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/sort/psort.c

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp