Commit 72809480 authored by Tom Lane's avatar Tom Lane

Fix incorrect snprintf() limit.

Typo in commit 7cbee7c0.  No practical effect since the buffer should
never actually be overrun, but various compilers and static analyzers will
whine about it.

Petr Jelinek
parent 821b821a
......@@ -7279,7 +7279,7 @@ StartupXLOG(void)
char partialpath[MAXPGPATH];
XLogFilePath(origpath, EndOfLogTLI, endLogSegNo);
snprintf(partialfname, MAXPGPATH, "%s.partial", origfname);
snprintf(partialfname, MAXFNAMELEN, "%s.partial", origfname);
snprintf(partialpath, MAXPGPATH, "%s.partial", origpath);
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment