mirror of
https://github.com/postgres/postgres.git
synced 2026-02-21 17:00:40 -05: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:
parent
821b821a24
commit
72809480d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue