diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-05-23 16:05:52 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-05-23 16:05:52 -0400 |
commit | 72809480d658fbc0654239b2f089991c077c676a (patch) | |
tree | 143f6d1511c9bc89f1025da84f4c4e55d9fcf611 /src/backend/access/transam/xlog.c | |
parent | 821b821a2421beaa58225ff000833df69fb962c5 (diff) | |
download | postgresql-72809480d658fbc0654239b2f089991c077c676a.tar.gz postgresql-72809480d658fbc0654239b2f089991c077c676a.zip |
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
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
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); /* |