summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2015-05-23 20:05:52 +0000
committerTom Lane2015-05-23 20:05:52 +0000
commit72809480d658fbc0654239b2f089991c077c676a (patch)
tree143f6d1511c9bc89f1025da84f4c4e55d9fcf611
parent821b821a2421beaa58225ff000833df69fb962c5 (diff)
Fix incorrect snprintf() limit.
Typo in commit 7cbee7c0a. No practical effect since the buffer should never actually be overrun, but various compilers and static analyzers will whine about it. Petr Jelinek
-rw-r--r--src/backend/access/transam/xlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 87a3b489142..b913bf3ebcb 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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);
/*