Skip to content

Commit 7280948

Browse files
committed
Fix incorrect snprintf() limit.
Typo in commit 7cbee7c. No practical effect since the buffer should never actually be overrun, but various compilers and static analyzers will whine about it. Petr Jelinek
1 parent 821b821 commit 7280948

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7279,7 +7279,7 @@ StartupXLOG(void)
72797279
char partialpath[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)