mirror of
https://github.com/postgres/postgres.git
synced 2025-11-13 16:22:44 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user