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

Commit7280948

Browse files
committed
Fix incorrect snprintf() limit.
Typo in commit7cbee7c. No practical effect since the buffer shouldnever actually be overrun, but various compilers and static analyzers willwhine about it.Petr Jelinek
1 parent821b821 commit7280948

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7279,7 +7279,7 @@ StartupXLOG(void)
72797279
charpartialpath[MAXPGPATH];
72807280

72817281
XLogFilePath(origpath,EndOfLogTLI,endLogSegNo);
7282-
snprintf(partialfname,MAXPGPATH,"%s.partial",origfname);
7282+
snprintf(partialfname,MAXFNAMELEN,"%s.partial",origfname);
72837283
snprintf(partialpath,MAXPGPATH,"%s.partial",origpath);
72847284

72857285
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp