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

Commit1483456

Browse files
committed
Fix for version() string overwrite.
1 parentd12d4c7 commit1483456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/version.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* IDENTIFICATION
77
*
8-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.2 1998/09/01 04:32:55 momjian Exp $
8+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.3 1998/10/09 16:42:32 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -23,7 +23,7 @@ version(void)
2323
text*ret= (text*)palloc(n);
2424

2525
VARSIZE(ret)=n;
26-
strcpy(VARDATA(ret),PG_VERSION_STR);
26+
StrNCpy(VARDATA(ret),PG_VERSION_STR,strlen(PG_VERSION_STR));
2727

2828
returnret;
2929
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp