projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821b821
)
Fix incorrect snprintf() limit.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 23 May 2015 20:05:52 +0000
(16:05 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 23 May 2015 20:05:52 +0000
(16:05 -0400)
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
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index 87a3b489142bc585c2f7198604835f8e661d9a98..b913bf3ebcbbd0da80fd539aaf788140cf0f9ab8 100644
(file)
--- 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, MAX
PGPATH
, "%s.partial", origfname);
+ snprintf(partialfname, MAX
FNAMELEN
, "%s.partial", origfname);
snprintf(partialpath, MAXPGPATH, "%s.partial", origpath);
/*