mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-04-06 20:31:03 +08: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
@ -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…
x
Reference in New Issue
Block a user